right property

double get right

Gets or sets the right margin size.

//Creates a new PDF document.
PdfDocument document = PdfDocument()
  //Create and set new PDF margin.
  ..pageSettings.margins = (PdfMargins()
    ..left = 20
    ..right = 40
    ..top = 100
    ..bottom = 100)
  ..pages.add().graphics.drawString(
      'Hello World!', PdfStandardFont(PdfFontFamily.helvetica, 12));
//Saves the document.
List<int> bytes = await document.save();
//Dispose the document.
document.dispose();

Implementation

double get right => _right;
set right (double value)

Implementation

set right(double value) {
  if (_right != value && !_helper.isPageAdded) {
    _right = value;
  }
}