of<T extends Bloc> static method
T
of<T extends Bloc>()
Implementation
static T of<T extends Bloc>() {
switch (T) {
case BlocExample:
{
return BlocCache.getBlocInstance(
'BlocExample', () => BlocExample.instance()) as T;
}
}
throw Exception('Bloc not found');
}