pick method

  1. @override
Future<List<DocumentPickerPath>?> pick(
  1. DocumentPickerType type, {
  2. bool? multiple,
  3. List<String>? allowedUtiTypes,
})
override

Implementation

@override
Future<List<DocumentPickerPath>?> pick(
  DocumentPickerType type, {
  bool? multiple,
  List<String>? allowedUtiTypes,
}) async {
  var maps = await methodChannel.invokeListMethod<Map<dynamic, dynamic>>(
      'pick', {
    'type': type.index,
    'multiple': multiple,
    'allowedUtiTypes': allowedUtiTypes
  });
  if (maps == null) {
    return null;
  }
  return maps.map((e) => DocumentPickerPath.fromMap(e)).toList();
}