ContentfulRichText class

Contentful Rich Text widget

Constructors

ContentfulRichText(dynamic richTextJson, {Options? options})

Properties

defaultNodeRenderers RenderNode
getter/setter pair
documentToWidgetTree Widget
This is the main entry point for ContentfulRichText. To render Flutter widgets, in your app instantiate ContentfulRichText with the JSON data, as well as any (optional) Renderer or Mark options, and then get documentToWidgetTree: ContentfulRichText(json, options: {...}).documentToWidgetTree
no setter
hashCode int
The hash code for this object.
no setterinherited
options Options?
getter/setter pair
richTextDocument Document?
getter/setter pair
richTextJson ↔ dynamic
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

nodeListToWidget(List? nodes) Widget
nodeListToWidget renders the Widget tree from the data nodes
nodeToWidget(dynamic node) Widget
nodeToWidget handles converting a node into a Widget, as well as handling any custom logic needed to accommodate different node types
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