removePage method

void removePage(
  1. String name
)

Removes a top-level page from the target project by name.

Implementation

void removePage(String name) {
  _queueRemoval(
    name: name,
    kind: 'page',
    declarationApi: 'page',
    declaredNames: _pageNames,
  );
  _rawMutations.add(
    (project) => project_helpers.removePage(project, name: name),
  );
}