Skip to content

Commit

Permalink
Use write instead of writeln
Browse files Browse the repository at this point in the history
  • Loading branch information
hawkkiller committed Dec 21, 2023
1 parent ea97ab9 commit fef08fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/src/core/utils/app_bloc_observer.dart
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class AppBlocObserver extends BlocObserver {
..writeln('${transition.event.runtimeType}')
..write('Transition: ${transition.currentState.runtimeType}')
..writeln(' => ${transition.nextState.runtimeType}')
..writeln('New State: ${transition.nextState.toString().limit(100)}');
..write('New State: ${transition.nextState.toString().limit(100)}');
logger.info(buffer.toString());
super.onTransition(bloc, transition);
}
Expand All @@ -26,7 +26,7 @@ class AppBlocObserver extends BlocObserver {
void onEvent(Bloc<Object?, Object?> bloc, Object? event) {
final buffer = StringBuffer()
..writeln('Bloc: ${bloc.runtimeType} | ${event.runtimeType}')
..writeln('Event: ${event.toString().limit(200)}');
..write('Event: ${event.toString().limit(200)}');
logger.info(buffer.toString());
super.onEvent(bloc, event);
}
Expand Down

0 comments on commit fef08fa

Please sign in to comment.