paragraphIndent property

double paragraphIndent

Gets or sets the indent of the first line in the paragraph.

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

Implementation

double get paragraphIndent => _paragraphIndent;
void paragraphIndent=(double value)

Implementation

set paragraphIndent(double value) {
  _paragraphIndent = value;
  _helper.firstLineIndent = value;
}