DocxSectionBreakBlock class
Represents a section break in the document.
Inserting a DocxSectionBreakBlock defines the properties (page size, margins, etc.) of the preceding section of the document.
builder.addParagraph('Page 1 (Portrait)');
builder.addSectionBreak(DocxSectionDef(
orientation: DocxPageOrientation.portrait,
));
builder.addParagraph('Page 2 (Landscape)');
// The final section properties are defined by the document's main section definition.
Constructors
- DocxSectionBreakBlock(DocxSectionDef section, {String? id})
-
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String?
-
Unique identifier for this node (for debugging/tracking).
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- section → DocxSectionDef
-
final
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
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited