of<T extends Bloc?> static method

T? of<T extends Bloc?>(
  1. T instance()
)

Implementation

static T? of<T extends Bloc?>(T Function() instance) {
  return BlocCache.getBlocInstance(T.toString(), instance) as T?;
}