DocumentDeltaDecoder class

Convert a list of Quill delta format insert operations to a document.

Throws ArgumentError when an attribute is encountered with no entry in attributeCodecs.

Inheritance

Constructors

DocumentDeltaDecoder(Map<String, TextAttributeDeltaCodec> attributeCodecs, Map<String, EmbedDecoder<ParagraphEmbed>> embedDecoders)
Create a decoder.
const

Properties

attributeCodecs Map<String, TextAttributeDeltaCodec>
Maps string keys to matching attribute codecs.
final
embedDecoders Map<String, EmbedDecoder<ParagraphEmbed>>
Maps embed keys to their decoder.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

bind(Stream<List<Op>> stream) Stream<Document>
Transforms the provided stream.
inherited
cast<RS, RT>() Converter<RS, RT>
Provides a Converter<RS, RT> view of this stream transformer.
inherited
convert(List<Op> input) Document
Converts input and returns the result of the conversion.
override
fuse<TT>(Converter<Document, TT> other) Converter<List<Op>, TT>
Fuses this with other.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
startChunkedConversion(Sink<Document> sink) Sink<List<Op>>
Starts a chunked conversion.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited