DropdownRF constructor

const DropdownRF({
  1. required dynamic items,
  2. dynamic model,
  3. required String field,
  4. List<DropdownMenuItem>? itemsOLD,
  5. String? value,
  6. dynamic bind,
  7. DropdownType dropdownType = DropdownType.simple,
  8. Widget? icon,
  9. int? maxLength,
  10. String? hintText,
  11. String? hint,
  12. String? caption,
  13. FormFieldSetter<String>? onSaved,
  14. FormFieldValidator<String>? validator,
  15. ValueChanged<String>? onFieldSubmitted,
  16. dynamic onChange(
    1. int index,
    2. String value
    )?,
  17. dynamic backColor = const Color(0x77f7f7f7),
  18. Color? backgroundColor,
  19. DropdownStyleRF dropdownStyle = DropdownStyleRF.normal,
  20. dynamic textColor,
  21. dynamic fontSize,
  22. bool autoLoadable = false,
  23. bool enabled = true,
  24. Color? borderColor,
  25. double? borderWidth,
  26. double? borderRadius,
  27. FontWeight? fontWeight,
  28. BoxDecoration? decoration,
  29. Widget? placeholder,
  30. WidgetStyleRF? widgetStyle,
  31. double height = 50,
  32. bool isExpanded = true,
})

Implementation

const DropdownRF({
  required this.items,
  this.model,
  required this.field,
  this.itemsOLD,
  this.value,
  this.bind,
  this.dropdownType = DropdownType.simple,
  this.icon,
  this.maxLength,
  this.hintText,
  this.hint,
  this.caption,
  this.onSaved,
  this.validator,
  this.onFieldSubmitted,
  this.onChange,
  this.backColor = const Color(0x77f7f7f7),
  this.backgroundColor,
  this.dropdownStyle = DropdownStyleRF.normal,
  this.textColor,
  this.fontSize,
  this.autoLoadable = false,
  this.enabled = true,
  this.borderColor,
  this.borderWidth,
  this.borderRadius,
  this.fontWeight,
  this.decoration,
  this.placeholder,
  this.widgetStyle,
  //  this.width,
  this.height = 50,
  this.isExpanded = true,
});