InputSticker.file constructor

InputSticker.file({
  1. required File sticker,
  2. required List<String> emojiList,
  3. MaskPosition? maskPosition,
  4. List<String>? keywords,
})

Implementation

factory InputSticker.file({
  required io.File sticker,
  required List<String> emojiList,
  MaskPosition? maskPosition,
  List<String>? keywords,
}) =>
    InputSticker(
      sticker: 'attach://${sticker.path}',
      stickerFile: MultipartFile(
          sticker.path, sticker.openRead(), sticker.lengthSync(),
          filename: sticker.path.split('/').last),
      emojiList: emojiList,
      maskPosition: maskPosition,
      keywords: keywords,
    );