Skip to content

Commit 7d6fde1

Browse files
committed
add logger onTransition of bloc
1 parent e09c537 commit 7d6fde1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/src/utilities/app_bloc_observer.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ class AppBlocObserver extends BlocObserver {
1818
..write('Transition: ${transition.currentState.runtimeType}')
1919
..writeln(' => ${transition.nextState.runtimeType}')
2020
..write('New State: ${transition.nextState.toString().limit(100)}');
21+
logger.info(buffer.toString());
2122
super.onTransition(bloc, transition);
2223
}
2324

0 commit comments

Comments
 (0)