pickMedia method

  1. @override
Future<List<SafDocumentFile>?> pickMedia({
  1. bool multiple = true,
  2. String mode = 'all',
})
override

Implementation

@override
Future<List<SafDocumentFile>?> pickMedia({
  bool multiple = true,
  String mode = 'all',
}) async {
  final maps = await methodChannel
      .invokeListMethod<Map<dynamic, dynamic>>('pickMedia', {
    'multiple': multiple,
    'mode': mode,
  });
  return maps?.map((map) => SafDocumentFile.fromMap(map)).toList();
}