removePageAt method

void removePageAt(
  1. int index
)

Removes a page by index (safe incremental edit).

Implementation

void removePageAt(int index) {
  if (index < 0 || index >= pdfPageList.pages.length) {
    throw RangeError.index(index, pdfPageList.pages, 'index');
  }
  final page = pdfPageList.pages.removeAt(index);
  page.inUse = false;
}