Replace the current route by a new one by path.
id is used to match listeners.
id
Process route middlewares before replace.
void replace(String path, {String? id}) { widget._state.replace(path, id: id); }