AppDropDownFormField<T extends Object> constructor

const AppDropDownFormField<T extends Object>({
  1. required AppItemsFetcher<T> fetcher,
  2. required AppItemsHandler<T> handler,
  3. String? labelText,
  4. String? hintText,
  5. AppItemsValidator<T>? validator,
  6. InputBorder? border,
  7. InputBorder? focusedBorder,
  8. EdgeInsets? inputContentPadding,
  9. EdgeInsets? tilesContentPadding,
  10. bool showTrailing = true,
  11. AppTextFormFieldErrorType errorType = AppTextFormFieldErrorType.string,
  12. Widget tileBuilder(
    1. T item,
    2. bool selected,
    3. VoidCallback onTap
    )?,
  13. bool enabled = true,
  14. bool updateTextOnChanged = true,
  15. bool? filled,
  16. Color? fillColor,
  17. TextInputType? keyboardType,
  18. Key? key,
})

Implementation

const AppDropDownFormField({
  required this.fetcher,
  required this.handler,
  this.labelText,
  this.hintText,
  this.validator,
  this.border,
  this.focusedBorder,
  this.inputContentPadding,
  this.tilesContentPadding,
  this.showTrailing = true,
  this.errorType = AppTextFormFieldErrorType.string,
  this.tileBuilder,
  this.enabled = true,
  this.updateTextOnChanged = true,
  this.filled,
  this.fillColor,
  this.keyboardType,
  super.key,
});