PdfListItem class Null safety

Represents list item of the list.

//Create a new instance of PdfDocument class.
PdfDocument document = PdfDocument();
//Create a new list.
PdfOrderedList(
    font: PdfStandardFont(PdfFontFamily.timesRoman, 10,
        style: PdfFontStyle.italic))
  ..items.add(
      //Create list item.
      PdfListItem(text: 'PDF'))
  ..draw(page: document.pages.add(), bounds: Rect.fromLTWH(10, 10, 0, 0));
//Save the document.
List<int> bytes = document.save();
//Dispose the document.
document.dispose();

Constructors

PdfListItem({String text = '', PdfFont? font, PdfStringFormat? format, PdfPen? pen, PdfBrush? brush, PdfList? subList})
Initializes a new instance of the PdfListItem class. [...]

Properties

brush PdfBrush?
Holds brush. [...]
read / write
font PdfFont?
Holds item font. [...]
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
pen PdfPen?
Holds pen. [...]
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
stringFormat PdfStringFormat?
Holds text format. [...]
read / write
subList PdfList?
Adds the Sub list. [...]
read / write
text String
Gets or sets item text. [...]
read / write
textIndent double
Text indent for current item. [...]
read / write

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited