push method

void push(
  1. String path, {
  2. String? id,
})

Pushes a new page by path.

id is used to match listeners.

Implementation

void push(String path, {String? id}) {
  widget._state.push(path, id: id);
}