SearchBar constructor
SearchBar({@required AppBar defaultBar, ValueChanged<String> onQueryChanged, ValueChanged<String> onQuerySubmitted, QuerySetLoader loader, SystemUiOverlayStyle overlayStyle, String searchHint: 'Tap to search...', bool iconified: true, bool autofocus, SearchItem searchItem, void onActivatedChanged, SearchBarAttrs attrs })
Implementation
SearchBar({
@required this.defaultBar,
this.onQueryChanged,
this.onQuerySubmitted,
this.loader,
this.overlayStyle,
this.searchHint = 'Tap to search...',
this.iconified = true,
bool autofocus,
SearchItem searchItem,
ValueChanged<bool> onActivatedChanged,
SearchBarAttrs attrs,
}) : this.autofocus = autofocus ?? iconified,
this.searchItem = searchItem ?? SearchItem.action(),
this.attrs = _initAttrs(iconified, attrs),
this.activatedChangedCallback =
onActivatedChanged ?? _blankActivatedCallback,
super(key: _stateKey);