DropdownMenuItem<T> constructor
- Key? key,
- VoidCallback? onTap,
- T? value,
- bool enabled = true,
- AlignmentGeometry alignment = AlignmentDirectional.centerStart,
- 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,
});