PdfListItem class

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 = await 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.
getter/setter pair
font PdfFont?
Holds item font.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
pen PdfPen?
Holds pen.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stringFormat PdfStringFormat?
Holds text format.
getter/setter pair
subList PdfList?
Adds the Sub list.
getter/setter pair
text String
Gets or sets item text.
getter/setter pair
textIndent double
Text indent for current item.
getter/setter pair

Methods

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

Operators

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