DNDropdownButton<T> constructor

const DNDropdownButton<T>({
  1. Key? key,
  2. Icon? icon,
  3. TextStyle? textStyle,
  4. T? value,
  5. List<DropdownMenuItem<T>>? items,
  6. EdgeInsets? contentPadding,
  7. BoxDecoration? decoration,
  8. BorderRadius? borderRadius,
  9. Color? backgroundColor,
  10. bool disabled = false,
  11. void onChanged(
    1. T?
    )?,
})

값, 항목, 상태와 스타일을 지정해 드롭다운을 만든다.

Implementation

const DNDropdownButton({
  super.key,
  this.icon,
  this.textStyle,
  this.value,
  this.items,
  this.contentPadding,
  this.decoration,
  this.borderRadius,
  this.backgroundColor,
  this.disabled = false,
  this.onChanged,
});