editPage method

void editPage(
  1. int index,
  2. Page page
)

Implementation

void editPage(int index, Page page) {
  assert(!_paint, 'The document has already been saved.');
  page.generate(this, index: index, insert: false);
  _pages.add(page);
}