TextBlockDeltaSerializer class
A DeltaSerializer that includes standard Quill Delta rules for serializing text blocks, e.g., paragraphs, lists, and tasks.
- Implemented types
- Implementers
Constructors
-
TextBlockDeltaSerializer({List<
InlineEmbedDeltaSerializer> inlineEmbedDeltaSerializers = const []}) -
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
inlineEmbedDeltaSerializers
→ List<
InlineEmbedDeltaSerializer> -
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
getBlockFormats(
TextNode textBlock) → Map< String, dynamic> -
Given the
textBlock, decides what combination of block-level attributes should be applied to the Quill Delta for this text block. -
getInlineAttributesFor(
Set< Attribution> superEditorAttributions) → Map<String, dynamic> -
Given a set of
superEditorAttributions, serializes those into Quill Delta inline text attributes, returning all attributes in a map that should be set as the "attributes" in an insertion delta. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
serialize(
DocumentNode node, Delta deltas) → bool -
Tries to serialize the given
DocumentNodeinto the givendeltas, returningtrueif this serializer was able to serialize thenode, orfalseif this serializer wasn't made to serialize this kind ofnode.override -
shouldSerialize(
DocumentNode node) → bool -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited