ParseErrorCallback typedef

ParseErrorCallback = void Function(Failure failure)

Callback invoked when a parse failure occurs.

In chunked stream parsing (ParseDecoderSink), Failure.position is a global offset from the beginning of the stream while Failure.buffer is only the active chunk window, so do not index Failure.buffer with Failure.position.

Implementation

typedef ParseErrorCallback = void Function(Failure failure);