Solution for is there is a way to limit the number of images which user select them from imagePicker.pickMultiImage()?
is Given Below:
I am working on a restaurant reservations project.
I have two apps,
One for the user and another for the manager.
The manager can upload photos of his restaurant. I don’t want it to select over 3 photos.
In the ImagePicker library in method pickMultiImage(), I cannot determine the maximum number of images allowed to be selected.
Is there a way to limit the number of photos that can be selected?
final ImagePicker _picker = ImagePicker();
final List? images = await _picker.pickMultiImage(source: ImageSource.gallery);