Widget.popupMenuButton constructor Null safety

const Widget.popupMenuButton(
  1. {Key? key,
  2. required List<PopupMenuEntry> items,
  3. String? initialValue,
  4. Callback? onOpened,
  5. FormStringField? field,
  6. Callback? onCanceled,
  7. String? tooltip,
  8. double? elevation,
  9. Color? shadowColor,
  10. Color? surfaceTintColor,
  11. @Default(EdgeInsets.all(8.0)) EdgeInsets padding,
  12. Widget? child,
  13. double? splashRadius,
  14. Widget? icon,
  15. double? iconSize,
  16. @Default(Offset.zero) Offset offset,
  17. @Default(true) bool enabled,
  18. ShapeBorder? shape,
  19. Color? color,
  20. bool? enableFeedback,
  21. BoxConstraints? constraints,
  22. PopupMenuPosition? position,
  23. @Default(Clip.none) Clip clipBehavior}
)

Implementation

const factory Widget.popupMenuButton({
  Key? key,
  required List<PopupMenuEntry> items,
  String? initialValue,
  Callback? onOpened,
  FormStringField? field,
  Callback? onCanceled,
  String? tooltip,
  double? elevation,
  Color? shadowColor,
  Color? surfaceTintColor,
  @Default(EdgeInsets.all(8.0)) EdgeInsets padding,
  Widget? child,
  double? splashRadius,
  Widget? icon,
  double? iconSize,
  @Default(Offset.zero) Offset offset,
  @Default(true) bool enabled,
  ShapeBorder? shape,
  Color? color,
  bool? enableFeedback,
  BoxConstraints? constraints,
  PopupMenuPosition? position,
  @Default(Clip.none) Clip clipBehavior,
}) = PopupMenuButton;