showsCancelButton property
Whether to show the cancel button.
When true, the cancel button slides in from the right when the search bar is focused, matching iOS behavior.
Defaults to false.
Implementation
final bool showsCancelButton;
Whether to show the cancel button.
When true, the cancel button slides in from the right when the search bar is focused, matching iOS behavior.
Defaults to false.
final bool showsCancelButton;