MenuAnchorChildBuilder typedef

MenuAnchorChildBuilder = Widget Function(BuildContext context, MenuController controller, Widget? child)

The type of builder function used by MenuAnchor.builder to build the widget that the MenuAnchor surrounds.

The context is the context that the widget is being built in.

The controller is the MenuController that can be used to open and close the menu with.

The child is an optional child supplied as the MenuAnchor.child attribute. The child is intended to be incorporated in the result of the function.

Implementation

typedef MenuAnchorChildBuilder = Widget Function(
  BuildContext context,
  MenuController controller,
  Widget? child,
);