convert_json library
Classes
- AttributeGestureMapper
- An opaque object, used to manage the lifetimes of GestureRecognizers.
- AttributeSegment
- A range of the source text with the set of attributes that are applied to it.
- AttributeSpan
- A TextAttribute applied to a range of text.
-
ClosureConverter<
S, T> - Create a Converter with a closure instead of a class.
-
ComponentCodec<
T> - Rules for encoding and decoding a boustro component.
- DeleteOp
- A Quill delta delete operation.
- Document
- Rich text represented as a list of Paragraphs.
- DocumentBuilder
- Builds a Document. Can be used fluently with cascades.
- DocumentJsonCodec
- Convert a document to or from JSON.
- InsertObjectOp
- A Quill delta operation that inserts an object.
- InsertOp
- A Quill delta operation that inserts formatted text.
- LineModifier
- Wraps a line to modify how it's displayed.
-
LineModifierCodec<
T extends LineModifier> - Component codec for LineModifiers.
- LineParagraph
- Immutable representation of a line of rich text in a Document.
- Op
- Quill delta operation.
- Paragraph
- A paragraph in a Document. Is either a LineParagraph for rich text, or a ParagraphEmbed for other content.
- ParagraphEmbed
- Base class for paragraph embeds.
-
ParagraphEmbedCodec<
T extends ParagraphEmbed> - Component codec for ParagraphEmbeds.
- ParagraphEmbedController
- Interface for controller of a ParagraphEmbed.
- Range
- A range with a start and end index.
- RetainOp
- A Quill delta retain operation. Can apply formatting over its length.
- SpanExpandRules
- Contains an ExpandRule for the start and end boundaries of a span.
- SpanList
- Manages AttributeSpans apart from the text to which they are to be applied.
- SpannedString
- Rich text represented with a String and a SpanList.
- SpannedStringBuilder
- Builds a SpannedString. Can be used fluently with cascades.
- TextAttribute
- An attribute to apply to a span of text.
-
TextAttributeCodec<
T extends TextAttribute> - Component codec for TextAttributes.
- TextAttributeValue
- Style and gesture handlers that can be applied to a TextSpan.
- ThemedTextAttribute
- Base class for TextAttribute implementations that need an AttributeTheme to resolve their theme.
- UneditableEmbed
- Base class for embeds that cannot be edited.
Enums
- ExpandRule
- Determines if a span expands when AttributeSpan.shift is called at its boundaries.
Extensions
-
AttributeSegmentsExtensions
on Iterable<
AttributeSegment> - Implements buildTextSpan for attribute segments.
- ExpandRuleExtension on ExpandRule
- Extensions for SpanAttachment.
-
LineModifierX
on Iterable<
LineModifier> - Extension method to apply line modifiers to a widget.
Constants
- maxSpanLength → const int
- Maximum length of a span.
Properties
-
bold
→ TextAttributeCodec<
_BoldAttribute> -
Codec to convert boldAttribute to/from JSON (see DocumentJsonCodec).
final
-
bulletList
→ LineModifierCodec<
_BulletListModifier> -
Codec to convert bulletListModifier to/from JSON (see DocumentJsonCodec).
final
-
heading
→ LineModifierCodec<
HeadingModifier> -
Codec to convert HeadingModifier to/from JSON (see DocumentJsonCodec).
final
-
image
→ ParagraphEmbedCodec<
ImageEmbed> -
Codec to convert ImageEmbed to/from JSON (see DocumentJsonCodec).
final
-
italic
→ TextAttributeCodec<
_ItalicAttribute> -
Codec to convert italicAttribute to/from JSON (see DocumentJsonCodec).
final
-
link
→ TextAttributeCodec<
LinkAttribute> -
Codec to convert LinkAttribute to/from JSON (see DocumentJsonCodec).
final
-
strikethrough
→ TextAttributeCodec<
_StrikethroughAttribute> -
Codec to convert underlineAttribute to/from JSON (see DocumentJsonCodec).
final
-
underline
→ TextAttributeCodec<
_UnderlineAttribute> -
Codec to convert underlineAttribute to/from JSON (see DocumentJsonCodec).
final
Exceptions / Errors
- JsonEncoderException
- Exception thrown when json encoding fails.