XfdnDrowdownFormField<T extends BaseModel> constructor

const XfdnDrowdownFormField<T extends BaseModel>({
  1. Key? key,
  2. String? hintText = "",
  3. dynamic onChanged(
    1. T? value
    )?,
  4. FormFieldValidator<T>? validator,
  5. double height = 0,
  6. double? borderRadius,
  7. Color? borderColor,
  8. String? label,
  9. bool required = false,
  10. EdgeInsets edgeInsets = const EdgeInsets.symmetric(vertical: 4),
  11. Color fillColor = Colors.white,
  12. Color textColor = Colors.black,
  13. required List<T> items,
  14. double? width,
  15. T? selectedItem,
})

Implementation

const XfdnDrowdownFormField({
  super.key,
  this.hintText = "",
  this.onChanged,
  this.validator,
  this.height = 0,
  this.borderRadius,
  this.borderColor,
  this.label,
  this.required = false,
  this.edgeInsets = const EdgeInsets.symmetric(vertical: 4),
  this.fillColor = Colors.white,
  this.textColor = Colors.black,
  required this.items,
  this.width,
  this.selectedItem,
});