file_picker library
Optional "File" attachments through file_picker.
import 'package:hatang_chat/file_picker.dart';
await HatangChat.configure(siteId: '…', appKey: '…', pickFile: hatangFilePicker);
Kept out of package:hatang_chat/hatang_chat.dart so apps that pin a
different file_picker (or use another picker) can pass their own
HatangFilePick instead.
Functions
-
hatangFilePicker(
) → Future< UploadSource?> -
Picks any file with
file_picker(13.x) for the chat composer's "File" option:HatangChat.configure(pickFile: hatangFilePicker).
Typedefs
-
HatangFilePick
= Future<
UploadSource?> Function() - Lets the visitor pick a file of any type, or null when they cancel.