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,
- EdgeInsetsGeometry? margin,
- bool visible = true,
- double? opacity,
- BoxFit? fit,
- AlignmentGeometry fitAlignment = Alignment.center,
- double? scale,
- double? rotate,
- Offset? translate,
- bool center = false,
- bool safeArea = false,
- int? expanded,
- int? flexible,
- bool positioned = false,
- double? left,
- double? top,
- double? right,
- double? bottom,
- double? positionedWidth,
- double? positionedHeight,
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,
this.margin,
this.visible = true,
this.opacity,
this.fit,
this.fitAlignment = Alignment.center,
this.scale,
this.rotate,
this.translate,
this.center = false,
this.safeArea = false,
this.expanded,
this.flexible,
this.positioned = false,
this.left,
this.top,
this.right,
this.bottom,
this.positionedWidth,
this.positionedHeight,
});