rightTemplate property

bool rightTemplate
getter/setter pair

Gets or sets value indicating whether parent right page template should be used or not.

//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()..rightTemplate = false;
//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 = await document.save();
//Dispose the document.
document.dispose();

Implementation

late bool rightTemplate;