textDirection property Null safety

PdfTextDirection textDirection
read / write

Gets and sets text rendering direction.

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

Implementation

late PdfTextDirection textDirection;