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,
  18. EdgeInsetsGeometry? margin,
  19. bool visible = true,
  20. double? opacity,
  21. BoxFit? fit,
  22. AlignmentGeometry fitAlignment = Alignment.center,
  23. double? scale,
  24. double? rotate,
  25. Offset? translate,
  26. bool center = false,
  27. bool safeArea = false,
  28. int? expanded,
  29. int? flexible,
  30. bool positioned = false,
  31. double? left,
  32. double? top,
  33. double? right,
  34. double? bottom,
  35. double? positionedWidth,
  36. 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,
});