pickImagesAndVideos method
Pick multiple images and videos
Implementation
@override
Future<List<String>> pickImagesAndVideos({
required int maxItems,
int maxVideoSizeMB = 100,
}) async {
try {
final List<dynamic> result = await _channel.invokeMethod(
'pickImagesAndVideos',
{'maxItems': maxItems, 'maxVideoSizeMB': maxVideoSizeMB},
);
return result.cast<String>();
} on PlatformException catch (e) {
throw Exception("Failed to pick media: ${e.message}");
}
}