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