subList property Null safety

PdfList? subList
read / write

Adds the Sub list.

//Create a new instance of PdfDocument class.
PdfDocument document = PdfDocument();
//Create a new list.
PdfOrderedList()
  ..items.add(PdfListItem(text: 'Essential tools')
    //Add sub list.
    ..subList = PdfOrderedList(items: PdfListItemCollection(['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();

Implementation

PdfList? subList;