getMultiImageWithOptions method
Future<List<XFile> >
getMultiImageWithOptions({
- MultiImagePickerOptions options = const MultiImagePickerOptions(),
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
@override
Future<List<XFile>> getMultiImageWithOptions({
MultiImagePickerOptions options = const MultiImagePickerOptions(),
}) async {
final List<String> paths = await _pickMultiImageAsPath(options: options);
return paths.map((String path) => XFile(path)).toList();
}