startDebug method

Future<void> startDebug()

Attaches the AppBlocObserver to the global Bloc.observer when running in staging.

Has no effect in production.

Implementation

Future<void> startDebug() async {
  if (isStaging) {
    Bloc.observer = AppBlocObserver();
  }
}