StickerManager.fromList constructor

StickerManager.fromList(
  1. List<Sticker> stickers
)

Implementation

factory StickerManager.fromList(List<Sticker> stickers) {
  return StickerManager(stickers.fold({}, (acc, sticker) {
    return {...acc, sticker.id: sticker};
  }));
}