deleteSticker method

void deleteSticker(
  1. StickerAsset asset
)

Implementation

void deleteSticker(StickerAsset asset) {
  final stickers = List.of(value.assets)
    ..removeWhere((element) => element.id == asset.id);

  value = value.copyWith(
    assets: stickers,
    selectedAssetId: '',
  );
}