MultiImagePickerOptions.createAndValidate constructor

MultiImagePickerOptions.createAndValidate({
  1. ImageOptions imageOptions = const ImageOptions(),
  2. int? limit,
})

Creates an instance with the given imageOptions and limit.

Throws if limit is lower than 2.

Implementation

MultiImagePickerOptions.createAndValidate({
  this.imageOptions = const ImageOptions(),
  this.limit,
}) {
  _validate(limit: limit);
}