StickerOverlay class final
A host-supplied sticker image.
- Inheritance
-
- Object
- StoryOverlay
- StickerOverlay
Constructors
- StickerOverlay({required String id, required OverlayTransform transform, required String stickerId, double baseSize = defaultBaseSize})
-
Creates a sticker overlay.
const
Properties
- baseSize → double
-
Length of the longer side 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
- stickerId → String
-
StorySticker.id.final - 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) → StickerOverlay -
Returns a copy with a new transform.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Constants
- defaultBaseSize → const double
- Default width of the longer sticker side in canvas units at scale 1.