onError method

  1. @override
void onError(
  1. BlocBase bloc,
  2. Object error,
  3. StackTrace stackTrace
)

Bloc Observer override method for onError For Flutter Instamojo Plugin

Implementation

@override
void onError(BlocBase bloc, Object error, StackTrace stackTrace) {
  if (kDebugMode) {
    print('${bloc.runtimeType} $error');
  }
  super.onError(bloc, error, stackTrace);
}