SmartSearchBox<T> constructor
const
SmartSearchBox<T> ({
- Key? key,
- required SmartSearchController<
T> controller, - InputDecoration? decoration,
- TextStyle? style,
- TextCapitalization textCapitalization = TextCapitalization.none,
- TextInputAction textInputAction = TextInputAction.search,
- TextInputType keyboardType = TextInputType.text,
- ValueChanged<
String> ? onSubmitted, - VoidCallback? onTap,
- bool enabled = true,
- bool readOnly = false,
- bool showClearButton = true,
- Widget clearButtonBuilder(
- VoidCallback onClear
- Widget? prefixIcon,
- Widget? suffixIcon,
- EdgeInsetsGeometry? contentPadding,
- bool? filled,
- Color? fillColor,
- BorderRadius? borderRadius,
- InputBorder? border,
- InputBorder? focusedBorder,
- InputBorder? enabledBorder,
- String? validator()?,
- List<
TextInputFormatter> ? inputFormatters, - AutovalidateMode? autovalidateMode,
- ValueChanged<
String> ? onChanged, - int? maxLength,
- MaxLengthEnforcement? maxLengthEnforcement,
- InputCounterWidgetBuilder? buildCounter,
Implementation
const SmartSearchBox({
super.key,
required this.controller,
this.decoration,
this.style,
this.textCapitalization = TextCapitalization.none,
this.textInputAction = TextInputAction.search,
this.keyboardType = TextInputType.text,
this.onSubmitted,
this.onTap,
this.enabled = true,
this.readOnly = false,
this.showClearButton = true,
this.clearButtonBuilder,
this.prefixIcon,
this.suffixIcon,
this.contentPadding,
this.filled,
this.fillColor,
this.borderRadius,
this.border,
this.focusedBorder,
this.enabledBorder,
this.validator,
this.inputFormatters,
this.autovalidateMode,
this.onChanged,
this.maxLength,
this.maxLengthEnforcement,
this.buildCounter,
});