child property

Widget? child

The widget that can be "opened" with the CupertinoContextMenu.

When the CupertinoContextMenu is long-pressed, the menu will open and this widget will be moved to the new route and placed inside of an Expanded widget. This allows the child to resize to fit in its place in the new route, if it doesn't size itself.

When the CupertinoContextMenu is "closed", this widget acts like a Container, i.e. it does not constrain its child's size or affect its position.


final Widget? child;