Layer class
Represents a layer with common properties for widgets.
- Implementers
Constructors
- Layer({String? id, Offset? offset, double? rotation, double? scale, bool? flipX, bool? flipY, bool? enableInteraction})
- Creates a new layer with optional properties.
-
Layer.fromMap(Map<
String, dynamic> map, List<Uint8List> stickers) -
Factory constructor for creating a Layer instance from a map and a list
of stickers.
factory
Properties
- enableInteraction ↔ bool
-
Flag to enable or disable the user interaction with the layer.
getter/setter pair
- flipX ↔ bool
-
Flags to control horizontal and vertical flipping.
getter/setter pair
- flipY ↔ bool
-
Flags to control horizontal and vertical flipping.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- id ↔ String
-
A unique identifier for the layer.
getter/setter pair
-
key
↔ GlobalKey<
State< StatefulWidget> > -
Global key associated with the Layer instance, used for accessing the
widget tree.
getter/setter pair
- offset ↔ Offset
-
The position offset of the widget.
getter/setter pair
- rotation ↔ double
-
The rotation and scale values of the widget.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scale ↔ double
-
The rotation and scale values of the widget.
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> - Converts this transform object to a Map.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited