SearchableListController<T> class

Inheritance

Constructors

SearchableListController({String initialQuery = ''})

Properties

hashCode → int
The hash code for this object.
no setterinherited
hasListeners → bool
Whether any listeners are currently registered.
no setterinherited
isAttached → bool
Whether a SearchableList is currently attached.
no setter
query → String
no setter
results → List<T>
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
scrollPosition → double
no setter
status → SearchableListStatus
no setter
value ↔ SearchableListValue<T>
The current value stored in this notifier.
getter/setter pairinherited

Methods

addListener(VoidCallback listener) → void
Register a closure to be called when the object changes.
inherited
attach(void callback(String query)) → void
Internal: called by the list's state. Not for app code.
clear() → void
Clears the filter. Does nothing if the query is already empty.
detach(void callback(String query)) → void
Internal: called by the list's state. Not for app code.
dispose() → void
Discards any resources used by the object.
inherited
filter(String query) → void
Filters the attached list with query. Does nothing if no list is attached yet.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notifyListeners() → void
Call all the registered listeners.
inherited
removeListener(VoidCallback listener) → void
Remove a previously registered closure from the list of closures that are notified when the object changes.
inherited
scrollTo(double offset, {bool animate = false, Curve curve = Curves.easeInOut}) → void
scrollToTop({bool animate = false, Curve curve = Curves.easeInOut}) → void
toString() → String
A string representation of this object.
inherited
update(SearchableListValue<T> newValue) → void
Internal: called by the list's state to publish a new snapshot.
updateSearchStrategy(SearchStrategy searchStrategy) → void

Operators

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