getEventStreamController static method

PlutoLayoutEventStreamController? getEventStreamController(
  1. BuildContext context
)

PlutoLayoutEventStreamController to receive or emit events of PlutoLayout.

You can access BuildContext from child widgets of PlutoLayout.

Implementation

static PlutoLayoutEventStreamController? getEventStreamController(
    BuildContext context) {
  return context
      .findRootAncestorStateOfType<_PlutoLayoutState>()
      ?._eventStreamController;
}