CustomPopupMenuItem<T> constructor
const
CustomPopupMenuItem<T> ({
- Key? key,
- required Widget? child,
- bool enabled = true,
- double height = kMinInteractiveDimension + 8.0,
- VoidCallback? onTap,
- EdgeInsets? padding = const EdgeInsets.symmetric(horizontal: 16.0, vertical: 8.0),
- T? value,
A PopupMenuItem with built in padding. This uses the default horizontal padding of 16, with a additional vertical of 8.
Implementation
const CustomPopupMenuItem({
super.key,
required super.child,
super.enabled,
super.height = kMinInteractiveDimension + 8.0,
super.onTap,
super.padding = const EdgeInsets.symmetric(
horizontal: 16.0,
vertical: 8.0,
),
super.value,
});