presenterOf<T extends Presenter<dynamic, AlfreedView>, M> static method

T presenterOf<T extends Presenter<dynamic, AlfreedView>, M>(
  1. BuildContext context
)

Find the closest PresenterInherited data with type M above the current widget and listen to data changes

Implementation

static T presenterOf<T extends Presenter, M>(
  BuildContext context,
) =>
    context
        .dependOnInheritedWidgetOfExactType<PresenterInherited<T, M>>()!
        .presenter;