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.