measureTrailingSpaces property

bool measureTrailingSpaces
getter/setter pair

Gets and sets whether spaces at the end of the line should be left or removed.

//Create a new PDF document.
PdfDocument document = PdfDocument()
  ..pages.add().graphics.drawString(
      'Hello World!', PdfStandardFont(PdfFontFamily.helvetica, 12),
      format: PdfStringFormat(measureTrailingSpaces: true));
//Save the document.
List<int> bytes = await document.save();
//Close the document.
document.dispose();

Implementation

late bool measureTrailingSpaces;