ParseDecoderSink<R> constructor

ParseDecoderSink<R>(
  1. Parser<R> parser,
  2. Sink<List<R>> sink, {
  3. ParseMatchCallback<R>? onMatch,
  4. ParseErrorCallback? onError,
  5. ParseCloseCallback? onClose,
})

Creates a ParseDecoderSink that outputs to sink.

Implementation

new(this.parser, this.sink, {this.onMatch, this.onError, this.onClose});