DropDownModel<T> constructor

DropDownModel<T>({
  1. required String key,
  2. T? value,
  3. required String text,
  4. Widget? prefixWidget,
  5. bool disabled = false,
  6. String? disabledText,
})

Constructor for creating a DropDownModel instance.

  • key: A required string key to uniquely identify the item.
  • value: A required value of generic type T.
  • text: A required string text to be displayed in the dropdown.

Implementation

DropDownModel({
  required this.key,
  this.value,
  required this.text,
  this.prefixWidget,
  this.disabled = false,
  this.disabledText,
});