getMultiImageWithOptions method
Future<List<XFile> >
getMultiImageWithOptions({
- MultiImagePickerOptions options = const MultiImagePickerOptions(),
inherited
Returns a List<XFile> with the images that were picked.
The images come from the ImageSource.gallery.
The options argument controls additional settings that can be used when
picking an image. See MultiImagePickerOptions for more details.
If no images were picked, returns an empty list.
Implementation
Future<List<XFile>> getMultiImageWithOptions({
MultiImagePickerOptions options = const MultiImagePickerOptions(),
}) async {
final List<XFile>? pickedImages = await getMultiImage(
maxWidth: options.imageOptions.maxWidth,
maxHeight: options.imageOptions.maxHeight,
imageQuality: options.imageOptions.imageQuality,
);
return pickedImages ?? <XFile>[];
}