EmbedRenderContext class
Everything an EmbedRenderer.build implementation needs to render one embed occurrence.
the type is defined now so the EmbedRenderer interface — and therefore
the EditorExtension contract — is final.
Constructors
- EmbedRenderContext({required Node node, required Embeddable embed, required bool readOnly, required TextStyle textStyle, QuillKitController? controller})
-
Creates a render context.
const
Properties
- controller → QuillKitController?
-
The controller of the hosting editor, or
nullwhen rendering inside the stateless viewer.final - embed → Embeddable
-
The embedded object being rendered.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- node → Node
-
The document node holding the embed.
final
- readOnly → bool
-
Whether the surrounding editor (or viewer) is read-only.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- textStyle → TextStyle
-
The resolved text style of the position the embed occupies.
final
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