DiagramState class
- Annotations
Constructors
-
DiagramState({ElectricalNode? root, @Default(DiagramStatus.initial) DiagramStatus status, @Default([]) List<
CalculationError> validationErrors, String? errorMessage, @Default({}) Map<String, Offset> nodePositions, @Default(false) bool canUndo, @Default(false) bool canRedo}) -
constfactory
Properties
- canRedo → bool
-
no setterinherited
- canUndo → bool
-
no setterinherited
-
copyWith
→ $DiagramStateCopyWith<
DiagramState> -
no setterinherited
- errorMessage → String?
-
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
-
nodePositions
→ Map<
String, Offset> -
no setterinherited
- root → ElectricalNode?
-
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- status → DiagramStatus
-
no setterinherited
-
validationErrors
→ List<
CalculationError> -
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited