PdfSectionTemplate class Null safety

Represents a page template for all the pages in the section.

//Create a new PDF documentation
PdfDocument document = PdfDocument();
//Create a new PDF section
PdfSection section = document.sections!.add();
//Create a section template
PdfSectionTemplate template = PdfSectionTemplate();
//Sets the template for the page in the section
section.template = template;
//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();
Inheritance

Constructors

PdfSectionTemplate()
Initializes a new instance of the PdfSectionCollection class. [...]

Properties

bottom PdfPageTemplateElement?
Gets a bottom page template.
read / write, inherited
bottomTemplate bool
Gets or sets value indicating whether parent bottom page template should be used or not. [...]
read / write
evenBottom PdfPageTemplateElement?
Gets a even bottom page template.
read / write, inherited
evenLeft PdfPageTemplateElement?
Gets a even left page template.
read / write, inherited
evenRight PdfPageTemplateElement?
Gets a even right page template.
read / write, inherited
evenTop PdfPageTemplateElement?
Gets a even top page template.
read / write, inherited
hashCode int
The hash code for this object. [...]
read-only, inherited
left PdfPageTemplateElement?
Gets a left page template.
read / write, inherited
leftTemplate bool
Gets or sets value indicating whether parent Left page template should be used or not. [...]
read / write
oddBottom PdfPageTemplateElement?
Gets a odd bottom page template.
read / write, inherited
oddLeft PdfPageTemplateElement?
Gets a odd left page template.
read / write, inherited
oddRight PdfPageTemplateElement?
Gets a odd right page template.
read / write, inherited
oddTop PdfPageTemplateElement?
Gets a odd top page template.
read / write, inherited
Gets a right page template.
read / write, inherited
rightTemplate bool
Gets or sets value indicating whether parent right page template should be used or not. [...]
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
stamp bool
Gets or sets value indicating whether the parent stamp elements should be used or not. [...]
read / write
stamps PdfStampCollection
Gets a collection of stamp elements.
read-only, inherited
top PdfPageTemplateElement?
Gets a top page template.
read / write, inherited
topTemplate bool
Gets or sets value indicating whether parent top page template should be used or not. [...]
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