Dropdown<T> constructor

const Dropdown<T>({
  1. Key? id,
  2. required List<T> options,
  3. required DropdownState state,
  4. T? selected,
  5. String display(
    1. T
    )?,
  6. void onChanged(
    1. T value
    )?,
  7. String placeholder = 'Select...',
  8. int maxDropdownHeight = 5,
})

Implementation

const Dropdown({
  Key? id,
  required this.options,
  required this.state,
  this.selected,
  this.display,
  this.onChanged,
  this.placeholder = 'Select...',
  this.maxDropdownHeight = 5,
}) : _id = id;