DocumentDeltaConverter class
Convert a document to or from a list of insert operations in Quill's delta format.
Constructors
-
DocumentDeltaConverter(List<
TextAttributeDeltaCodec> attributeCodecs, List<EmbedCodec< embedCodec)ParagraphEmbed> > - 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 fromT
toS
.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
toT
.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< other) → Codec<Op> , R>Document, R> -
Fuses
this
withother
.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