DropdownButton<T> constructor

DropdownButton<T>({
  1. required List<DropdownMenuItem<T>> items,
  2. T? value,
  3. ValueCmdCallback<T>? onChanged,
  4. Widget? hint,
  5. Widget? disabledHint,
  6. bool enabled = true,
  7. ButtonSize size = ButtonSize.medium,
  8. ButtonVariant variant = ButtonVariant.outline,
  9. Style? textStyle,
  10. Key? key,
})

Implementation

DropdownButton({
  required this.items,
  this.value,
  this.onChanged,
  this.hint,
  this.disabledHint,
  this.enabled = true,
  this.size = ButtonSize.medium,
  this.variant = ButtonVariant.outline,
  this.textStyle,
  super.key,
});