RawMenuAnchorChildBuilder typedef

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

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

The context is the context in which the anchor is being built.

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

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

Implementation

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