DropdownMenuItem<T> constructor

const DropdownMenuItem<T>({
  1. Key? key,
  2. VoidCallback? onTap,
  3. T? value,
  4. bool enabled = true,
  5. AlignmentGeometry alignment = AlignmentDirectional.centerStart,
  6. required Widget child,
})

Creates an item for a dropdown menu.

The child argument is required.

Implementation

const DropdownMenuItem({
  super.key,
  this.onTap,
  this.value,
  this.enabled = true,
  super.alignment,
  required super.child,
});