HareAutoCompleteField constructor

HareAutoCompleteField({
  1. required FutureOr<Iterable<String>> optionsBuilder(
    1. TextEditingValue edit
    ),
  2. double maxOptionsHeight = 400,
  3. double maxOptionsWidth = 300,
  4. void onSelected(
    1. String
    )?,
  5. void onSubmited(
    1. String
    )?,
  6. void onChange(
    1. String
    )?,
  7. String? initValue,
  8. Widget? label,
  9. Widget? suffix,
  10. Widget? suffixIcon,
  11. Widget? prefix,
  12. Widget? prefixIcon,
  13. InputDecoration? decoration,
  14. TextInputType? keyboardType,
  15. List<TextInputFormatter>? inputFormatters,
  16. void onController(
    1. TextEditingController controller
    )?,
})

Implementation

HareAutoCompleteField({
  required this.optionsBuilder,
  this.maxOptionsHeight = 400,
  this.maxOptionsWidth = 300,
  this.onSelected,
  this.onSubmited,
  this.onChange,
  this.initValue,
  this.label,
  this.suffix,
  this.suffixIcon,
  this.prefix,
  this.prefixIcon,
  this.decoration,
  this.keyboardType,
  this.inputFormatters,
  this.onController,
}) : super(key: UniqueKey());