SubZeroSearchField constructor

const SubZeroSearchField({
  1. Key? key,
  2. String hintText = 'Search here',
  3. ValueChanged<String>? onSubmitted,
  4. ValueChanged<String>? onChanged,
  5. VoidCallback? onFocused,
  6. VoidCallback? onCleared,
  7. VoidCallback? onMicrophoneTap,
  8. bool showMicrophone = true,
  9. String? initialValue,
  10. TextEditingController? controller,
  11. FocusNode? focusNode,
  12. SubZeroSearchSize size = SubZeroSearchSize.medium,
  13. bool enabled = true,
  14. bool autofocus = false,
  15. Color? backgroundColor,
  16. Color? focusedBorderColor,
})

Implementation

const SubZeroSearchField({
  super.key,
  this.hintText = 'Search here',
  this.onSubmitted,
  this.onChanged,
  this.onFocused,
  this.onCleared,
  this.onMicrophoneTap,
  this.showMicrophone = true,
  this.initialValue,
  this.controller,
  this.focusNode,
  this.size = SubZeroSearchSize.medium,
  this.enabled = true,
  this.autofocus = false,
  this.backgroundColor,
  this.focusedBorderColor,
});