getMultiVideoWithOptions method
Future<List<XFile> >
getMultiVideoWithOptions({
- MultiVideoPickerOptions options = const MultiVideoPickerOptions(),
Returns a List<XFile> with the videos that were picked.
The videos come from the ImageSource.gallery.
The options argument controls additional settings that can be used when
picking a video. See MultiVideoPickerOptions for more details.
If no videos were picked, returns an empty list.
Implementation
@override
Future<List<XFile>> getMultiVideoWithOptions({
MultiVideoPickerOptions options = const MultiVideoPickerOptions(),
}) async {
final List<PickedMedia> results = await _hostApi.pickMultiVideo(
options.maxDuration?.inSeconds,
options.limit,
);
return results.map(_xFileFromResult).toList();
}