pickMultiFiles method
Picks multiple files from the device storage.
Implementation
Future<List<AttachmentResult>> pickMultiFiles({int? maxCount}) async {
try {
final List? results = await _channel.invokeMethod('pickMultiFile', {
'maxCount': maxCount,
});
if (results == null) return [];
var attachmentResults = results.map((e) => _resultFromPath(e.toString())).toList();
return attachmentResults;
} catch (e) {
debugPrint('PixelToPdfService: pickMultiFile error: $e');
return [];
}
}