addPage method

void addPage(
  1. Page page, {
  2. int? index,
})

Implementation

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