DropDownItemState<T> constructor

DropDownItemState<T>(
  1. T value, {
  2. required String label,
})

Creates a new instance of DropDownItemState.

  • value: The value associated with the dropdown item (required).
  • label: The label or name of the dropdown item (required).

Implementation

DropDownItemState(T value, {required String label})
    : super(value: value, label: label, rules: const []);