ISpectifyBlocSettings constructor
const
ISpectifyBlocSettings({
- bool enabled = true,
- bool printEvents = true,
- bool printTransitions = true,
- bool printChanges = true,
- bool printEventFullData = true,
- bool printStateFullData = true,
- bool printCreations = true,
- bool printClosings = true,
- bool transitionFilter(
- Bloc bloc,
- Transition transition
- bool eventFilter(
- Bloc bloc,
- Object? event
Creates an instance of ISpectifyBlocSettings.
enabled: Iftrue, logging is enabled. Defaults totrue.printEvents: Iftrue, logs events received by the Bloc. Defaults totrue.printTransitions: Iftrue, logs state transitions. Defaults totrue.printChanges: Iftrue, logs state changes. Defaults tofalse.printEventFullData: Iftrue, logs full event data. Defaults totrue.printStateFullData: Iftrue, logs full state data. Defaults totrue.printCreations: Iftrue, logs Bloc creation events. Defaults tofalse.printClosings: Iftrue, logs Bloc closing events. Defaults tofalse.transitionFilter: A filter function to determine if a transition should be logged.eventFilter: A filter function to determine if an event should be logged.
Implementation
const ISpectifyBlocSettings({
this.enabled = true,
this.printEvents = true,
this.printTransitions = true,
this.printChanges = true,
this.printEventFullData = true,
this.printStateFullData = true,
this.printCreations = true,
this.printClosings = true,
this.transitionFilter,
this.eventFilter,
});