MediaOptions class

Specifies options for selecting items when using ImagePickerPlatform.getMedia.

Annotations

Constructors

MediaOptions({ImageOptions imageOptions = const ImageOptions(), required bool allowMultiple, int? limit})
Construct a new MediaOptions instance.
const
MediaOptions.createAndValidate({ImageOptions imageOptions = const ImageOptions(), required bool allowMultiple, int? limit})
Construct a new MediaOptions instance.

Properties

allowMultiple bool
Whether to allow for selecting multiple media.
final
hashCode int
The hash code for this object.
no setterinherited
imageOptions ImageOptions
Options that will apply to images upon selection.
final
limit int?
The maximum number of images to select.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited