of<P extends Presenter<P>> static method

P of<P extends Presenter<P>>(
  1. BuildContext context
)

Implementation

static P of<P extends Presenter<P>>(BuildContext context) {
  return (context.getElementForInheritedWidgetOfExactType<
          PresenterProvider<P>>()! as _PresenterProviderElement<P>)
      .presenter;
}