pick method
Future<List<DocumentPickerPath> ?>
pick(
- DocumentPickerType type, {
- bool? multiple,
- 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();
}