Docuements the new flag in BrowserHistory.setRouteName (flutter/engine#26519)
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user