SearchBar constructor
- Key? key,
 - TextEditingController? controller,
 - FocusNode? focusNode,
 - String? hintText,
 - Widget? leading,
 - Iterable<
Widget> ? trailing, - GestureTapCallback? onTap,
 - TapRegionCallback? onTapOutside,
 - ValueChanged<
String> ? onChanged, - ValueChanged<
String> ? onSubmitted, - BoxConstraints? constraints,
 - MaterialStateProperty<
double?> ? elevation, - MaterialStateProperty<
Color?> ? backgroundColor, - MaterialStateProperty<
Color?> ? shadowColor, - MaterialStateProperty<
Color?> ? surfaceTintColor, - MaterialStateProperty<
Color?> ? overlayColor, - MaterialStateProperty<
BorderSide?> ? side, - MaterialStateProperty<
OutlinedBorder?> ? shape, - MaterialStateProperty<
EdgeInsetsGeometry?> ? padding, - MaterialStateProperty<
TextStyle?> ? textStyle, - MaterialStateProperty<
TextStyle?> ? hintStyle, - TextCapitalization? textCapitalization,
 - bool enabled = true,
 - bool autoFocus = false,
 - TextInputAction? textInputAction,
 - TextInputType? keyboardType,
 - EdgeInsets scrollPadding = const EdgeInsets.all(20.0),
 - EditableTextContextMenuBuilder? contextMenuBuilder = _defaultContextMenuBuilder,
 
Creates a Material Design search bar.
Implementation
const SearchBar({
  super.key,
  this.controller,
  this.focusNode,
  this.hintText,
  this.leading,
  this.trailing,
  this.onTap,
  this.onTapOutside,
  this.onChanged,
  this.onSubmitted,
  this.constraints,
  this.elevation,
  this.backgroundColor,
  this.shadowColor,
  this.surfaceTintColor,
  this.overlayColor,
  this.side,
  this.shape,
  this.padding,
  this.textStyle,
  this.hintStyle,
  this.textCapitalization,
  this.enabled = true,
  this.autoFocus = false,
  this.textInputAction,
  this.keyboardType,
  this.scrollPadding = const EdgeInsets.all(20.0),
  this.contextMenuBuilder = _defaultContextMenuBuilder,
});