remove method

void remove(
  1. PdfListItem item
)

Removes the specified item from the list.

//Create a new PDF document.
PdfDocument document = PdfDocument();
//Create a new ordered list.
PdfList list = PdfOrderedList(
    items: PdfListItemCollection()
      ..add(PdfListItem(text: 'PDF'))
      ..add(PdfListItem(text: 'DocIO')),
    font: PdfStandardFont(PdfFontFamily.helvetica, 16,
        style: PdfFontStyle.italic));
//Remove a specific item
list
  ..items.remove(list.items[0])
  ..draw(
      page: document.pages.add(), bounds: const Rect.fromLTWH(20, 20, 0, 0));
//Save the document.
List<int> bytes = await document.save();
//Dispose the document.
document.dispose();

Implementation

void remove(PdfListItem item) {
  _helper.remove(item);
}