LockedLimitSelectionOptions<T> class

A Filterable SelectionOptions implementation that uses a persistent limit when filtering.

This implementation is limited in that it will not update outside of filter even if the underlying selectionOption has a optionGroup change.

Inheritance
Implemented types

Constructors

LockedLimitSelectionOptions(SelectionOptions<T> options, int lockedLimit)

Properties

currentLimit int?
Max number of items requested on the last call to filter.
no setteroverride
currentQuery Object?
The query passed in on the last call to filter.
no setteroverride
hashCode int
The hash code for this object.
no setterinherited
hasMoreOptions bool
Returns true if the number of options filtered with currentQuery was truncated so as not to exceed the currentLimit, or if filtering has not happened yet.
no setter
isNotEmpty bool
TODO(google): Remove method after b/26784290 is resolved.
no setterinherited
lockedLimit int
final
optionGroups List<OptionGroup<T>>
The groups of available options.
getter/setter pairinherited-setteroverride-getter
optionsList List<T>
All options flattened in one list.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stream Stream<List<OptionGroup<T>>>
Provides the stream of options group changes.
no setterinherited
unlockLimit bool
no getter

Methods

dispose() → void
Dispose when the the options come from a stream.
override
filter(Object filterQuery, {int? limit = UNLIMITED}) DisposableFuture<bool>
Filter up to limit results using filterQuery. limit is used instead of lockedLimit iff unlockLimit is true.
override
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

Constants

UNLIMITED → const int