push abstract method

void push(
  1. Uri uri, [
  2. Object? state
])

Pushes a new history entry.

The optional state is stored on the entry and can be read back via location's RouteInformation.state.

Implementation

void push(Uri uri, [Object? state]);