ISpectifyBlocSettings constructor

const ISpectifyBlocSettings({
  1. bool enabled = true,
  2. bool printEvents = true,
  3. bool printTransitions = true,
  4. bool printChanges = true,
  5. bool printEventFullData = true,
  6. bool printStateFullData = true,
  7. bool printCreations = true,
  8. bool printClosings = true,
  9. bool transitionFilter(
    1. Bloc bloc,
    2. Transition transition
    )?,
  10. bool eventFilter(
    1. Bloc bloc,
    2. Object? event
    )?,
})

Creates an instance of ISpectifyBlocSettings.

  • enabled: If true, logging is enabled. Defaults to true.
  • printEvents: If true, logs events received by the Bloc. Defaults to true.
  • printTransitions: If true, logs state transitions. Defaults to true.
  • printChanges: If true, logs state changes. Defaults to false.
  • printEventFullData: If true, logs full event data. Defaults to true.
  • printStateFullData: If true, logs full state data. Defaults to true.
  • printCreations: If true, logs Bloc creation events. Defaults to false.
  • printClosings: If true, logs Bloc closing events. Defaults to false.
  • 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,
});