UDropDownField<T> constructor
const
UDropDownField<T> ({
- required T initialValue,
- required List<
DropdownMenuItem< items,T> > - required ValueChanged<
T> onChanged, - Key? key,
- String? text,
- String? labelText,
- String? hintText,
- EdgeInsetsGeometry? contentPadding,
- double? fontSize,
- VoidCallback? onTap,
- String? validator(
- T?
- Widget? prefix,
- Widget? suffix,
- dynamic onSave(
- T? value
- double? textHeight,
- bool required = false,
- 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,
});