CustomPopupMenuItem<T> constructor

const CustomPopupMenuItem<T>({
  1. Key? key,
  2. required Widget? child,
  3. bool enabled = true,
  4. double height = kMinInteractiveDimension + 8.0,
  5. VoidCallback? onTap,
  6. EdgeInsets? padding = const EdgeInsets.symmetric(horizontal: 16.0, vertical: 8.0),
  7. 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,
});