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({
  Key? key,
  this.onTap,
  this.value,
  this.enabled = true,
  AlignmentGeometry alignment = AlignmentDirectional.centerStart,
  required Widget child,
}) : super(key: key, alignment: alignment, child: child);