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