addSticker method

void addSticker(
  1. Sticker sticker
)

Implementation

void addSticker(Sticker sticker) {
  final assets = StickerAsset(id: uuid(), sticker: sticker);
  value = value.copyWith(
    assets: List.of(value.assets)..add(assets),
    selectedAssetId: assets.id,
  );
}