PdfSection class Null safety

Represents a section entity. A section is a set of the pages with similar page settings.

//Create a new PDF documentation
PdfDocument document = PdfDocument();
//Create a new PDF section
PdfSection section = document.sections!.add();
//Create a new PDF page and draw the text
section.pages.add().graphics.drawString(
    'Hello World!!!', PdfStandardFont(PdfFontFamily.helvetica, 27),
    brush: PdfBrushes.darkBlue, bounds: const Rect.fromLTWH(170, 100, 0, 0));
//Save the document.
List<int> bytes = document.save();
//Dispose the document.
document.dispose();

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
pageAdded PageAddedCallback?
Event rises when the new page has been added
read / write
pages PdfPageCollection
Gets the collection of pages in this section. [...]
read-only
pageSettings PdfPageSettings
Gets or sets the PdfPageSettings of the section. [...]
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
template PdfSectionTemplate
Gets or sets the PdfSectionTemplate for the pages in the section. [...]
read / write

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

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