PopupMenuEntry.item constructor Null safety

const PopupMenuEntry.item(
  1. {Key? key,
  2. String? value,
  3. Callback? onTap,
  4. @Default(true) bool enabled,
  5. @Default(48.0) double height,
  6. EdgeInsets? padding,
  7. TextStyle? textStyle,
  8. MouseCursor? mouseCursor,
  9. required Widget? child}
)

Implementation

const factory PopupMenuEntry.item({
  Key? key,
  String? value,
  Callback? onTap,
  @Default(true) bool enabled,
  @Default(48.0) double height,
  EdgeInsets? padding,
  TextStyle? textStyle,
  MouseCursor? mouseCursor,
  required Widget? child,
}) = PopupMenuItem;