pickMultiple method
Future<List<PickerValue> >
pickMultiple({
- String? dialogTitle,
- PickerFileType type = PickerFileType.any,
Pick up multiple files.
It is possible to specify the title of the file dialog to be picked up with dialogTitle
.
You can restrict the type of file by specifying type
.
複数のファイルをピックアップします。
dialogTitle
でピックアップする際のファイルダイアログのタイトルを指定することが可能です。
type
を指定するとファイルの種類を制限することができます。
Implementation
Future<List<PickerValue>> pickMultiple({
String? dialogTitle,
PickerFileType type = PickerFileType.any,
}) async {
try {
_completer = Completer();
final res = await adapter.pickMultiple(
dialogTitle: dialogTitle,
type: type,
);
notifyListeners();
_completer?.complete();
_completer = null;
return res;
} catch (e) {
_completer?.completeError(e);
_completer = null;
rethrow;
} finally {
_completer?.complete();
_completer = null;
}
}