pickImages static method
- List<
Asset> selectedAssets = const [], - IOSOptions iosOptions = const IOSOptions(),
- AndroidOptions androidOptions = const AndroidOptions(),
Invokes the multi image picker selector.
On iOS you can pass also iosOptions
parameter which should be
an instance of IOSOptions class. It allows you
to customize the look of the image picker. On Android
you can pass the androidOptions
parameter, which should
be an instance of AndroidOptions class.
If you would like to present the picker with pre selected
photos, you can pass selectedAssets
with List of Asset
objects picked previously from the picker.
This method returns list of Asset objects. Because they are just placeholders containing the actual identifier to the image, not the image itself you can pick thousands of images at a time, with no performance penalty. How to request the original image or a thumb you can refer to the docs for the Asset class.
Implementation
static Future<List<Asset>> pickImages({
List<Asset> selectedAssets = const [],
IOSOptions iosOptions = const IOSOptions(),
AndroidOptions androidOptions = const AndroidOptions(),
}) =>
MultiImagePickerPlatform.instance.pickImages(
selectedAssets: selectedAssets,
iosOptions: iosOptions,
androidOptions: androidOptions,
);