SearchBarState
The state of a search bar.
Constructors
Construct a SearchBarState.
Properties
The layout coordinates, if available, of the search bar when it is collapsed. Used to coordinate the expansion animation.
Whether the search bar is currently expanded or collapsed. If the search bar is currently animating to/from the expanded state, currentValue is SearchBarValue.Expanded until the animation completes.
Whether the state is currently animating
The animation progress of the search bar, where 0 represents SearchBarValue.Collapsed and 1 represents SearchBarValue.Expanded.
Whether the search bar is going to be expanded or collapsed.
Functions
Animate the search bar to its collapsed state.
Animate the search bar to its expanded state.
Snap the search bar progress to the given fraction, where 0 represents SearchBarValue.Collapsed and 1 represents SearchBarValue.Expanded.