FilterOption class

A series of filter options for AssetType when querying assets.

Annotations

Constructors

FilterOption({bool needTitle = false, SizeConstraint sizeConstraint = const SizeConstraint(), DurationConstraint durationConstraint = const DurationConstraint()})
Creates a new instance of the FilterOption class.
const

Properties

durationConstraint DurationConstraint
See DurationConstraint, ignore in AssetType.image.
final
hashCode int
The hash code for this object.
no setteroverride
needTitle bool
This property affects performance on iOS.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sizeConstraint SizeConstraint
See SizeConstraint
final

Methods

copyWith({bool? needTitle, SizeConstraint? sizeConstraint, DurationConstraint? durationConstraint}) FilterOption
Returns a new FilterOption object with the same properties as this one, but with any specified properties replaced.
merge(FilterOption? other) FilterOption
Returns a new FilterOption object with the properties of this object merged with those of another FilterOption.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() Map<String, dynamic>
Returns a Map representation of this FilterOption object, with keys corresponding to the property names.
toString() String
A string representation of this object.
override

Operators

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