ShapeLayer class
A layer representing a geometric shape.
- Inheritance
-
- Object
- LayerModel
- ShapeLayer
Constructors
Properties
- borderRadius ↔ double?
-
The border radius (for rectangles).
getter/setter pair
- color ↔ Color
-
The fill color of the shape.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- height ↔ double?
-
Explicit height of the layer (null means auto-size).
getter/setter pairinherited
- id ↔ String
-
Unique identifier for the layer.
getter/setter pairinherited
- isLocked ↔ bool
-
Whether the layer is locked (prevents editing).
getter/setter pairinherited
- isSelected ↔ bool
-
Whether the layer is currently selected.
getter/setter pairinherited
- opacity ↔ double
-
Opacity of the layer (0.0 to 1.0).
getter/setter pairinherited
- position ↔ Offset
-
The position of the layer on the canvas.
getter/setter pairinherited
- rotation ↔ double
-
The rotation of the layer in radians.
getter/setter pairinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scale ↔ double
-
The scale factor of the layer.
getter/setter pairinherited
- shapeType ↔ String
-
The type of shape ('rectangle', 'circle').
getter/setter pair
- type ↔ LayerType
-
The type of the layer.
getter/setter pairinherited
- width ↔ double?
-
Explicit width of the layer (null means auto-size).
getter/setter pairinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited