removePageAt method
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;
}