removePageAt method

DocumentPage? removePageAt(
  1. int index
)

Removes a page at specified index.

Implementation

DocumentPage? removePageAt(int index) {
  if (index >= 0 && index < _pages.length) {
    return _pages.removeAt(index);
  }
  return null;
}