DocumentDeltaConverter class

Convert a document to or from a list of insert operations in Quill's delta format.

Inheritance

Constructors

DocumentDeltaConverter(List<TextAttributeDeltaCodec> attributeCodecs, List<EmbedCodec<ParagraphEmbed>> embedCodec)
Create a delta converter

Properties

attributeDecoders Map<String, TextAttributeDeltaCodec>
Maps string keys to matching attribute codecs.
final
attributeEncoder Object? Function(TextAttribute)
Converts attributes to their value as a Quill delta attribute.
final
decoder Converter<List<Op>, Document>
Returns the decoder of this, converting from T to S.
no setteroverride
embedDecoders Map<String, EmbedDecoder<ParagraphEmbed>>
Maps embed keys to their decoder.
final
embedEncoders Map<Type, EmbedEncoder<ParagraphEmbed>>
Maps embed keys to their encoder.
final
encoder Converter<Document, List<Op>>
Returns the encoder from S to T.
no setteroverride
hashCode int
The hash code for this object.
no setterinherited
inverted Codec<List<Op>, Document>
Inverts this.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

decode(List<Op> encoded) Document
Decodes encoded data.
inherited
encode(Document input) List<Op>
Encodes input.
inherited
fuse<R>(Codec<List<Op>, R> other) Codec<Document, R>
Fuses this with other.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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