BlocAdapter class

Feeds flutter_bloc/bloc state changes into the App State Inspector, via DevBlocObserver. Set Bloc.observer = DevBlocObserver() before creating any Bloc/Cubit, then pass a BlocAdapter to AppStateInspectorPlugin.

Inheritance

Constructors

BlocAdapter()

Properties

entries List<AppStateEntry>
Recorded state changes, oldest first.
no setteroverride
hashCode int
The hash code for this object.
no setterinherited
name String
This source's label in the inspector's dropdown (e.g. 'Bloc', 'Riverpod').
no setteroverride
revision Listenable?
Notified whenever entries changes, so the inspector can rebuild as state flows in. Return null if the underlying source cannot signal updates — the tab then only refreshes when it is rebuilt for other reasons.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited