MaterialSearchBarData constructor

MaterialSearchBarData({
  1. Key? widgetKey,
  2. TextEditingController? controller,
  3. FocusNode? focusNode,
  4. void onTap()?,
  5. ValueChanged<String>? onChanged,
  6. bool? autofocus,
  7. TextInputType? keyboardType,
  8. Widget? leading,
  9. Iterable<Widget>? trailing,
  10. BoxConstraints? constraints,
  11. MaterialStateProperty<double?>? elevation,
  12. MaterialStateProperty<Color?>? shadowColor,
  13. MaterialStateProperty<Color?>? surfaceTintColor,
  14. MaterialStateProperty<Color?>? overlayColor,
  15. MaterialStateProperty<BorderSide?>? side,
  16. MaterialStateProperty<OutlinedBorder?>? shape,
  17. MaterialStateProperty<EdgeInsetsGeometry?>? padding,
  18. MaterialStateProperty<Color?>? backgroundColor,
  19. MaterialStateProperty<TextStyle?>? hintStyle,
  20. MaterialStateProperty<TextStyle?>? textStyle,
  21. String? hintText,
  22. ValueChanged<String>? onSubmitted,
  23. TextCapitalization? textCapitalization,
  24. TextInputAction? textInputAction,
})

Implementation

MaterialSearchBarData({
  // Common
  super.widgetKey,
  super.controller,
  super.focusNode,
  super.onTap,
  super.onChanged,
  super.autofocus,
  super.keyboardType,

  //Material
  this.leading,
  this.trailing,
  this.constraints,
  this.elevation,
  this.shadowColor,
  this.surfaceTintColor,
  this.overlayColor,
  this.side,
  this.shape,
  this.padding,
  this.backgroundColor,
  this.hintStyle,
  this.textStyle,
  this.hintText,
  this.onSubmitted,
  this.textCapitalization,
  this.textInputAction,
});