DocxImage class

An image element in the document (Block Level).

DocxImage represents an image with block-level alignment.

Inheritance

Constructors

DocxImage({required Uint8List bytes, required String extension, double width = 200, double height = 150, String? altText, DocxAlign align = DocxAlign.center, String? id})

Properties

align DocxAlign
Horizontal alignment within the paragraph.
final
altText String?
no setter
asInline DocxInlineImage
no setter
bytes Uint8List
no setter
extension String
no setter
hashCode int
The hash code for this object.
no setterinherited
height double
no setter
id String?
Unique identifier for this node (for debugging/tracking).
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
width double
no setter

Methods

accept(DocxVisitor visitor) → void
Accepts a visitor for traversing the AST.
override
buildXml(XmlBuilder builder) → void
Converts this node to its XML representation.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setRelationshipId(String rId, int uniqueId) → void
Sets the relationship ID for DOCX export.
toString() String
A string representation of this object.
inherited

Operators

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