ispectify_bloc 6.1.6 copy "ispectify_bloc: ^6.1.6" to clipboard
ispectify_bloc: ^6.1.6 copied to clipboard

BLoC and Cubit observer for ISpect with event, transition, change, error, completion, and redacted metadata logging.

example/main.dart

import 'package:bloc/bloc.dart';
import 'package:ispectify/ispectify.dart';
import 'package:ispectify_bloc/ispectify_bloc.dart';

final class CounterCubit extends Cubit<int> {
  CounterCubit() : super(0);

  void increment() => emit(state + 1);
}

Future<void> main() async {
  final logger = ISpectLogger();
  Bloc.observer = ISpectBlocObserver(logger: logger);

  final counter = CounterCubit()..increment();
  await counter.close();
}
0
likes
160
points
3.73k
downloads

Documentation

API reference

Publisher

verified publishershodev.live

Weekly Downloads

BLoC and Cubit observer for ISpect with event, transition, change, error, completion, and redacted metadata logging.

Repository (GitHub)
View/report issues
Contributing

License

(pending) (license)

Dependencies

bloc, ispectify, meta

More

Packages that depend on ispectify_bloc