TextAttributeDeltaCodec class

Rules for encoding and decoding a TextAttribute to and from a Quill delta attribute.

Annotations

Constructors

TextAttributeDeltaCodec({required String key, required Converter<dynamic, TextAttribute> decoder, required bool appliesTo(TextAttribute), required Converter<TextAttribute, Object> encoder})
Create a text attribute codec for Quill delta conversion.
const

Properties

appliesTo bool Function(TextAttribute)
Should return true if this codec applies to the given TextAttribute.
final
decoder Converter<dynamic, TextAttribute>
Decode the attribute value to a TextAttribute.
final
encoder Converter<TextAttribute, Object>
Encoder for a TextAttribute value.
final
hashCode int
The hash code for this object.
no setterinherited
key String
Key of the TextAttribute. Identifies the type of the attribute.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

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