ofType<T extends ModBloc<ModBaseDTO, dynamic>> static method

T ofType<T extends ModBloc<ModBaseDTO, dynamic>>(
  1. BuildContext cntxt
)

Implementation

static T ofType<T extends ModBloc>(BuildContext cntxt) {
  //final type = _providerType<LoginBlocProvider<T>>();
  final LoginBlocProvider<T> provider = cntxt.findAncestorWidgetOfExactType() as LoginBlocProvider<T>;
  return provider.bloc;
}