toStickerMap method
Converts this transform object to a Map suitable for representing a sticker.
Returns a Map representing the properties of this transform object,
augmented with the specified listPosition
indicating the position of
the sticker in a list.
Implementation
Map<String, dynamic> toStickerMap(int listPosition) {
return {
...toMap(),
'listPosition': listPosition,
'type': 'sticker',
};
}