UDropDownField<T> constructor

const UDropDownField<T>({
  1. required T initialValue,
  2. required List<DropdownMenuItem<T>> items,
  3. required ValueChanged<T> onChanged,
  4. Key? key,
  5. String? text,
  6. String? labelText,
  7. String? hintText,
  8. EdgeInsetsGeometry? contentPadding,
  9. double? fontSize,
  10. VoidCallback? onTap,
  11. String? validator(
    1. T?
    )?,
  12. Widget? prefix,
  13. Widget? suffix,
  14. dynamic onSave(
    1. T? value
    )?,
  15. double? textHeight,
  16. bool required = false,
  17. bool isDense = true,
})

Implementation

const UDropDownField({
  required this.initialValue,
  required this.items,
  required this.onChanged,
  super.key,
  this.text,
  this.labelText,
  this.hintText,
  this.contentPadding,
  this.fontSize,
  this.onTap,
  this.validator,
  this.prefix,
  this.suffix,
  this.onSave,
  this.textHeight,
  this.required = false,
  this.isDense = true,
});