SmartSearchBox<T> constructor

const SmartSearchBox<T>({
  1. Key? key,
  2. required SmartSearchController<T> controller,
  3. InputDecoration? decoration,
  4. TextStyle? style,
  5. TextCapitalization textCapitalization = TextCapitalization.none,
  6. TextInputAction textInputAction = TextInputAction.search,
  7. TextInputType keyboardType = TextInputType.text,
  8. ValueChanged<String>? onSubmitted,
  9. VoidCallback? onTap,
  10. bool enabled = true,
  11. bool readOnly = false,
  12. bool showClearButton = true,
  13. Widget clearButtonBuilder(
    1. VoidCallback onClear
    )?,
  14. Widget? prefixIcon,
  15. Widget? suffixIcon,
  16. EdgeInsetsGeometry? contentPadding,
  17. bool? filled,
  18. Color? fillColor,
  19. BorderRadius? borderRadius,
  20. InputBorder? border,
  21. InputBorder? focusedBorder,
  22. 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,
});