ModalSearchBar constructor

const ModalSearchBar({
  1. Key? key,
  2. required dynamic onTextChanged(
    1. String
    ),
  3. TextEditingController? controller,
  4. dynamic onDismissKeyboard(
    1. bool
    )?,
  5. String hint = '',
  6. String initialValue = '',
  7. String? iconPath = 'lib/modal/assets/icons/search.svg',
  8. Widget? prefixIcon,
  9. Widget? suffixIcon,
  10. TextAlign? textAlign,
  11. TextInputType? textInputType,
  12. TextInputAction? textInputAction,
  13. dynamic onSubmitted(
    1. String
    )?,
  14. bool? autofocus,
  15. dynamic onFocusChange(
    1. bool
    )?,
  16. bool noIcons = false,
  17. bool showCursor = true,
  18. TextStyle? textStyle,
  19. bool debounce = true,
  20. FocusNode? focusNode,
  21. double? width,
  22. bool enabled = true,
  23. List<TextInputFormatter>? inputFormatters,
})

Implementation

const ModalSearchBar({
  super.key,
  required this.onTextChanged,
  this.controller,
  this.onDismissKeyboard,
  this.hint = '',
  this.initialValue = '',
  this.iconPath = 'lib/modal/assets/icons/search.svg',
  this.prefixIcon,
  this.suffixIcon,
  this.textAlign,
  this.textInputType,
  this.textInputAction,
  this.onSubmitted,
  this.autofocus,
  this.onFocusChange,
  this.noIcons = false,
  this.showCursor = true,
  this.textStyle,
  this.debounce = true,
  this.focusNode,
  this.width,
  this.enabled = true,
  this.inputFormatters,
});