AppDropdownButtonFormField<T> constructor

const AppDropdownButtonFormField<T>({
  1. Key? key,
  2. T? value,
  3. required List<DropdownMenuItem<T>>? items,
  4. DropdownButtonBuilder? selectedItemBuilder,
  5. required ValueChanged<T?>? onChanged,
  6. Widget? emptyItemChild,
  7. Widget? hint,
  8. Widget? disabledHint,
  9. VoidCallback? onTap,
  10. FocusNode? focusNode,
  11. bool autofocus = false,
  12. InputDecoration? decoration,
  13. FormFieldSetter<T>? onSaved,
  14. FormFieldValidator<T>? validator,
  15. AutovalidateMode? autovalidateMode,
  16. bool alwaysHideIcon = false,
})

Implementation

const AppDropdownButtonFormField({
  super.key,
  this.value,
  required this.items,
  this.selectedItemBuilder,
  required this.onChanged,
  this.emptyItemChild,
  this.hint,
  this.disabledHint,
  this.onTap,
  this.focusNode,
  this.autofocus = false,
  this.decoration,
  this.onSaved,
  this.validator,
  this.autovalidateMode,
  this.alwaysHideIcon = false,
});