pickFiles static method

Future<List<XFile>?> pickFiles({
  1. Set<String> mimeTypes = const {},
  2. LiveList<XFile>? files,
  3. bool throwOnMimeTypeNotMatch = false,
})

Implementation

static Future<List<XFile>?> pickFiles(
        {Set<String> mimeTypes = const {}, LiveList<XFile>? files, bool throwOnMimeTypeNotMatch = false}) =>
    RawDropView.pickFiles(mimeTypes: mimeTypes, multiple: true, throwOnMimeTypeNotMatch: throwOnMimeTypeNotMatch)
        .toList()
        .then((value) {
      final result = value.isNotEmpty ? value : null;
      if (result != null) files?.setTo(result);
      return result;
    });