ComponentData class
Holds component's node data and containing rect size data.
- Annotations
-
- @JsonSerializable()
Constructors
-
ComponentData({required double width, required double height, required Map<
String, dynamic> nodes, Map<String, Set< variables = const {}, Map<VariableData> >String, Set< conditions = const {}})BaseCondition> > - Default constructor to create new instances.
-
ComponentData.fromJson(Map<
String, dynamic> json) -
Factory constructor for creating a new instance of this class from
a JSON object.
factory
Properties
- aspectRatio → double
-
Returns aspect ratio of the component.
no setter
-
conditions
→ Map<
String, Set< BaseCondition> > -
Node ID -> conditions.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- height → double
-
Height of the containing rect for nodes.
final
-
nodes
→ Map<
String, dynamic> -
JSON data of all the nodes of the component where key is the ID of the
node and value is actual node JSON that is used to recreate a
BaseNode
instance.final -
props
→ List<
Object?> -
The list of properties that will be used to determine whether
two instances are equal.
no setter
- rect → RectC
-
Returns containing rect of the component.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stringify → bool?
-
If set to
true
, the toString method will be overridden to output this instance's props.no setterinherited -
variables
→ Map<
String, Set< VariableData> > -
Node ID -> variables.
final
- width → double
-
Width of the containing rect for nodes.
final
Methods
-
copyWith(
{double? width, double? height, Map< String, dynamic> ? nodes, Map<String, Set< ? variables, Map<VariableData> >String, Set< ? conditions}) → ComponentDataBaseCondition> > - Duplicate this ComponentData instance with the given data overrides.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map - Returns a serializable map representation of the object.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited