INNER CODE UNIT · Dart

BlocStateLog

Frezyx/talker · packages/talker_bloc_logger/lib/bloc_logs.dart:34

class BlocStateLog extends TalkerLog {
  BlocStateLog({
    required this.bloc,
    required this.transition,
    required this.settings,
  }) : super('${bloc.runtimeType} with event ${transition.event.runtimeType}'
            '\nCURRENT state: ${_formatCurrentState(transition.currentState, settings)}'
            '\nNEXT state: ${_formatNextState(transition.nextState, settings)}');

  final Bloc bloc;
  final Transition transition;
  final TalkerBlocLoggerSettings settings;

  @override
  String get key => TalkerKey.blocTransition;

  @override
  String generateTextMessage({

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…