Docuements the new flag in BrowserHistory.setRouteName (flutter/engine#26519)

This commit is contained in:
chunhtai
2021-06-03 10:14:01 -07:00
committed by GitHub
parent 0998ae3840
commit dde172a2f6

View File

@@ -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.