onChange method
Called whenever a Change
occurs in any bloc
A change
occurs when a new state is emitted.
onChange is called before a bloc's state has been updated.
Implementation
@override
void onChange(BlocBase bloc, Change change) {
super.onChange(bloc, change);
if (!settings.enabled || !settings.printChanges) {
return;
}
_talker.logCustom(
BlocChangeLog(
bloc: bloc,
change: change,
settings: settings,
),
);
}