SearchField constructor
const
SearchField({
- Key? key,
- TextEditingController? controller,
- String? hint = 'Search…',
- ValueChanged<
String> ? onChanged, - ValueChanged<
String> ? onSubmitted, - VoidCallback? onCleared,
- bool enabled = true,
- bool autofocus = false,
- String? label,
- double? borderRadius,
- Widget? suffixIcon,
- FocusNode? focusNode,
Implementation
const SearchField({
super.key,
this.controller,
this.hint = 'Search…',
this.onChanged,
this.onSubmitted,
this.onCleared,
this.enabled = true,
this.autofocus = false,
this.label,
this.borderRadius,
this.suffixIcon,
this.focusNode,
});