addCodec method

CodecPipeline addCodec(
  1. TextCodec codec
)

Adds a codec to the end of the pipeline.

codec The codec to add. Returns a new pipeline with the codec added.

Implementation

CodecPipeline addCodec(TextCodec codec) {
  return CodecPipeline([...codecs, codec]);
}