open method
void
open({})
Open a page on Navigator's stack.
Please note that if a Page with same name already exists, it'll bring that to top rather than creating new one.
Will throw exception if Navigator doesn't have a route with the provided name.
Implementation
void open({
required String name,
Map<String, String> values = const {},
bool updateHistory = true,
}) {
if (_isDisposed) {
throw Exception('Cannot call open() after state is disposed off.');
}
var path = _renderElement!.getPathFromName(name: name);
_renderElement!.openPath(
path: path,
values: values,
updateHistory: updateHistory,
);
}