pickFiles method

  1. @override
Future<List<File>> pickFiles(
  1. bool multiple, {
  2. List<String> mime = const [],
  3. required int viewId,
})
override

Convenience function to display the browser File Open dialog.

Set multiple to allow picking more than one file. Specify the list of accepted MIME types in mime. Returns the list of files picked by the user.

Implementation

@override
Future<List<web.File>> pickFiles(bool multiple,
    {List<String> mime = const [], required int viewId}) {
  return _views[viewId]!.pickFiles(multiple, mime);
}