ImageNode class

An image block (<img>).

Supports network URLs, local file paths, and base64 data URIs. Can be resized and aligned (left, center, right).

Inheritance

Constructors

ImageNode({String? id, required String src, String? alt, double? width, double? height, String? caption, SmartTextAlign alignment = SmartTextAlign.center})

Properties

alignment ↔ SmartTextAlign
getter/setter pairinherited
alt ↔ String?
getter/setter pair
blockType → BlockType
no setteroverride
caption ↔ String?
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
height ↔ double?
getter/setter pair
id → String
finalinherited
lineHeight ↔ double?
getter/setter pairinherited
plainText → String
no setteroverride
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
spans ↔ List<TextFormatSpan>
getter/setter pairinherited
src ↔ String
getter/setter pair
tag → String
no setteroverride
textLength → int
no setterinherited
width ↔ double?
getter/setter pair

Methods

deepCopy() → BlockNode
override
getSpanAt(int globalOffset) → ({int localOffset, int spanIndex})
inherited
normalizeSpans() → void
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
inherited