of<T extends Bloc> static method

T? of<T extends Bloc>(
  1. BuildContext context
)

Implementation

static T? of<T extends Bloc>(BuildContext context) {
  return context.dependOnInheritedWidgetOfExactType<_Provider<T>>()?.bloc;
}