toStickerMap method

Map toStickerMap(
  1. int listPosition
)

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 toStickerMap(int listPosition) {
  return {
    ...toMap(),
    'listPosition': listPosition,
    'type': 'sticker',
  };
}