From dde172a2f630de670e9d4ac875aac4cb6fcca018 Mon Sep 17 00:00:00 2001 From: chunhtai <47866232+chunhtai@users.noreply.github.com> Date: Thu, 3 Jun 2021 10:14:01 -0700 Subject: [PATCH] Docuements the new flag in BrowserHistory.setRouteName (flutter/engine#26519) --- .../lib/web_ui/lib/src/engine/navigation/history.dart | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/engine/src/flutter/lib/web_ui/lib/src/engine/navigation/history.dart b/engine/src/flutter/lib/web_ui/lib/src/engine/navigation/history.dart index 2ef9050ffc..b8f5c2b246 100644 --- a/engine/src/flutter/lib/web_ui/lib/src/engine/navigation/history.dart +++ b/engine/src/flutter/lib/web_ui/lib/src/engine/navigation/history.dart @@ -62,7 +62,11 @@ abstract class BrowserHistory { /// The state of the current location of the user's browser. Object? get currentState => urlStrategy?.getState(); - /// Update the url with the given [routeName] and [state]. + /// Update the url with the given `routeName` and `state`. + /// + /// If `replace` is false, the caller wants to push a new `routeName` and + /// `state` on top of the existing ones; otherwise, the caller wants to replace + /// the current `routeName` and `state` with the new ones. void setRouteName(String? routeName, {Object? state, bool replace = false}); /// A callback method to handle browser backward or forward buttons.