EmojiOverlay class final
An emoji, drawn with the platform emoji font.
- Inheritance
-
- Object
- StoryOverlay
- EmojiOverlay
Constructors
- EmojiOverlay({required String id, required OverlayTransform transform, required String emoji, double fontSize = defaultFontSize})
-
Creates an emoji overlay.
const
Properties
- emoji → String
-
The emoji (may be several code points).
final
- fontSize → double
-
Size in canvas units at scale 1.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- id → String
-
Unique within the document.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- transform → OverlayTransform
-
Placement on the canvas.
finalinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
withTransform(
OverlayTransform transform) → EmojiOverlay -
Returns a copy with a new transform.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Constants
- defaultFontSize → const double
- Default emoji size in canvas units at scale 1.