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,
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,
});