EmojiLayerData class
A class representing a layer with emoji content.
EmojiLayerData is a subclass of Layer that allows you to display emoji on a canvas. You can specify the emoji to display, along with optional properties like offset, rotation, scale, and more.
Example usage:
EmojiLayerData(
emoji: 'π',
offset: Offset(100.0, 100.0),
rotation: 45.0,
scale: 2.0,
);
Constructors
Properties
- emoji β String
-
The emoji to display on the layer.
getter/setter pair
- flipX β bool
-
Flags to control horizontal and vertical flipping.
getter/setter pairinherited
- flipY β bool
-
Flags to control horizontal and vertical flipping.
getter/setter pairinherited
- hashCode β int
-
The hash code for this object.
no setterinherited
- id β String
-
A unique identifier for the layer.
getter/setter pairinherited
-
key
β GlobalKey<
State< StatefulWidget> > -
getter/setter pairinherited
- offset β Offset
-
The position offset of the widget.
getter/setter pairinherited
- rotation β double
-
The rotation and scale values of the widget.
getter/setter pairinherited
- 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 pairinherited
Methods
-
noSuchMethod(
Invocation invocation) β dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) β Map -
Converts this transform object to a Map.
override
-
toString(
) β String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) β bool -
The equality operator.
inherited