addCodec method
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]);
}
Adds a codec to the end of the pipeline.
codec
The codec to add.
Returns a new pipeline with the codec added.
CodecPipeline addCodec(TextCodec codec) {
return CodecPipeline([...codecs, codec]);
}