DropdownButton<T> constructor

const DropdownButton<T>({
  1. required List<DropdownMenuItem<T>> items,
  2. T? value,
  3. void onChanged(
    1. T? newValue
    )?,
  4. Widget? hint,
  5. Style style = Style.empty,
  6. Style dropdownStyle = const Style(modifiers: Modifier.reverse),
  7. bool focused = false,
})

Creates a new dropdown button.

Implementation

const DropdownButton({
  required this.items,
  this.value,
  this.onChanged,
  this.hint,
  this.style = Style.empty,
  this.dropdownStyle = const Style(modifiers: Modifier.reverse),
  this.focused = false,
});