BlocEventChannelErrorDebugger constructor

const BlocEventChannelErrorDebugger({
  1. required Widget child,
  2. Key? key,
  3. bool printDebug = false,
  4. bool printUnexpected = true,
  5. void printFunction(
    1. TrackedError
    )?,
})

printDebug and printUnexpected determine which type of errors will be logged.

Specify printFunction if you want to log it yourself rather than just print it to console.

Implementation

const BlocEventChannelErrorDebugger({
  required this.child,
  super.key,
  this.printDebug = false,
  this.printUnexpected = true,
  this.printFunction,
});