LiteSearchField constructor

const LiteSearchField({
  1. Key? key,
  2. required ValueChanged<String> onSearch,
  3. TextEditingController? textEditingController,
  4. double paddingTop = 0.0,
  5. double paddingBottom = 0.0,
  6. double paddingLeft = 0.0,
  7. double paddingRight = 0.0,
  8. InputDecoration? decoration,
  9. FocusNode? focusNode,
  10. String? initialValue,
  11. String? hintText = 'Search...',
  12. bool autofocus = false,
  13. TextStyle? style,
  14. bool readOnly = false,
  15. LiteSearchFieldSettings settings = const LiteSearchFieldSettings(),
})

Implementation

const LiteSearchField({
  super.key,
  required this.onSearch,
  this.textEditingController,
  this.paddingTop = 0.0,
  this.paddingBottom = 0.0,
  this.paddingLeft = 0.0,
  this.paddingRight = 0.0,
  this.decoration,
  this.focusNode,
  this.initialValue,
  this.hintText = 'Search...',
  this.autofocus = false,
  this.style,
  this.readOnly = false,
  this.settings = const LiteSearchFieldSettings(),
});