CNSearchBarController class

Controller for imperatively managing CNSearchBar state.

Constructors

CNSearchBarController()

Properties

hashCode int
The hash code for this object.
no setterinherited
isExpanded bool
Whether the search bar is currently expanded.
no setter
onExpandChanged VoidCallback?
Listen to expand/collapse state changes.
no getter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

clear() Future<void>
Clears the search text.
collapse({bool animated = true}) Future<void>
Collapses the search bar back to icon-only mode.
expand({bool animated = true}) Future<void>
Expands the search bar to show the text field.
focus() Future<void>
Focuses the search text field.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setText(String text) Future<void>
Sets the search text programmatically.
toString() String
A string representation of this object.
inherited
unfocus() Future<void>
Unfocuses the search text field.

Operators

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