onChange method
Records the transition, then chains to the superclass.
Implementation
@override
void onChange(BlocBase bloc, Change change) {
_entries.add(
BlocStateEntry(
bloc.runtimeType.toString(),
change.nextState,
change.currentState,
),
);
if (_entries.length > maxEntries) _entries.removeAt(0);
version.value++;
super.onChange(bloc, change);
}