lineAlignment property

PdfVerticalAlignment lineAlignment
getter/setter pair

Gets and sets Vertical text alignment.

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

Implementation

late PdfVerticalAlignment lineAlignment;