pickMultipleFiles method
Future<List<String> ?>
pickMultipleFiles(
- MediaOptions options,
- List<
String> ? allowedExtensions
override
Implementation
@override
Future<List<String>?> pickMultipleFiles(
MediaOptions options, List<String>? allowedExtensions) async {
try {
final result =
await methodChannel.invokeMethod<List<dynamic>>('pickMultipleFiles', {
'options': options.toMap(),
'allowedExtensions': allowedExtensions,
});
return result?.cast<String>().toList();
} on PlatformException catch (e) {
throw Exception('Error picking multiple files: ${e.message}');
}
}