ISpectifyBlocObserver constructor

ISpectifyBlocObserver({
  1. ISpectify? iSpectify,
  2. ISpectifyBlocSettings settings = const ISpectifyBlocSettings(),
  3. void onBlocEvent(
    1. Bloc bloc,
    2. Object? event
    )?,
  4. void onBlocTransition(
    1. Bloc bloc,
    2. Transition transition
    )?,
  5. void onBlocChange(
    1. BlocBase bloc,
    2. Change change
    )?,
  6. void onBlocError(
    1. BlocBase bloc,
    2. Object error,
    3. StackTrace stackTrace
    )?,
  7. void onBlocCreate(
    1. BlocBase bloc
    )?,
  8. void onBlocClose(
    1. BlocBase bloc
    )?,
  9. List<String> filters = const [],
})

Implementation

ISpectifyBlocObserver({
  ISpectify? iSpectify,
  this.settings = const ISpectifyBlocSettings(),
  this.onBlocEvent,
  this.onBlocTransition,
  this.onBlocChange,
  this.onBlocError,
  this.onBlocCreate,
  this.onBlocClose,
  this.filters = const [],
}) {
  _iSpectify = iSpectify ?? ISpectify();
}