HMAutocomplete constructor

const HMAutocomplete({
  1. Key? key,
  2. bool disabled = false,
  3. bool hidden = false,
  4. bool isModalView = true,
  5. required List<String> optionsBuilder(
    1. String value
    ),
  6. Widget optionsViewBuilder(
    1. BuildContext,
    2. void (
      1. String
      ),
    3. List<String>
    )?,
  7. Widget fieldViewBuilder(
    1. BuildContext,
    2. TextEditingController,
    3. bool,
    4. void (
      1. String value
      ),
    )?,
  8. Color? fillColor,
  9. String? initialValue,
  10. double? modalRadius,
  11. EdgeInsets? optionsPaddding,
  12. Widget? selectedIcon,
  13. required void onSelected(
    1. String
    ),
  14. String? hintText,
  15. BoxDecoration? selectPanelDecoration,
  16. Color? selectedBgColor,
  17. TextStyle? selectedValueTextStyle,
  18. HMRadius? radius,
  19. HMAutocompleteSize? size,
  20. TextStyle? optionsTextStyle,
})

Implementation

const HMAutocomplete({
  super.key,
  this.disabled = false,
  this.hidden = false,
  this.isModalView = true,
  required this.optionsBuilder,
  this.optionsViewBuilder,
  this.fieldViewBuilder,
  this.fillColor,
  this.initialValue,
  this.modalRadius,
  this.optionsPaddding,
  this.selectedIcon,
  required this.onSelected,
  this.hintText,
  this.selectPanelDecoration,
  this.selectedBgColor,
  this.selectedValueTextStyle,
  this.radius,
  this.size,
  this.optionsTextStyle,
});