buildChild method Null safety
protected">@protected
The menu item contents.
Used by the build method.
By default, this returns PopupMenuItem.child. Override this to put something else in the menu entry.
Implementation
@protected
Widget? buildChild() => widget.child;