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.
Constructors
-
DocumentDeltaDecoder.new(Map<
String, TextAttributeDeltaCodec> attributeCodecs, Map<String, EmbedDecoder< embedDecoders)ParagraphEmbed> > -
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< stream) → Stream<Op> >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
withother
.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