DropdownRF constructor
const
DropdownRF({
- required dynamic items,
- dynamic model,
- required String field,
- List<
DropdownMenuItem> ? itemsOLD, - String? value,
- dynamic bind,
- DropdownType dropdownType = DropdownType.simple,
- Widget? icon,
- int? maxLength,
- String? hintText,
- String? hint,
- String? caption,
- FormFieldSetter<
String> ? onSaved, - FormFieldValidator<
String> ? validator, - ValueChanged<
String> ? onFieldSubmitted, - dynamic onChange()?,
- dynamic backColor = const Color(0x77f7f7f7),
- Color? backgroundColor,
- DropdownStyleRF dropdownStyle = DropdownStyleRF.normal,
- dynamic textColor,
- dynamic fontSize,
- bool autoLoadable = false,
- bool enabled = true,
- Color? borderColor,
- double? borderWidth,
- double? borderRadius,
- FontWeight? fontWeight,
- BoxDecoration? decoration,
- Widget? placeholder,
- WidgetStyleRF? widgetStyle,
- double height = 50,
- 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,
});