NavigatorState class

Constructors

Properties

context BuildContext
Navigator's context.
no setter
currentRouteName String
Name of the active route. Route, that's currently on top of Navigator stack.
no setter
hashCode int
The hash code for this object.
no setterinherited
routes List<Route>
Routes that this Navigator instance handles.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
widget Navigator
Navigator widget's instance.
final

Methods

back() → void
Go back.
canGoBack() bool
Whether navigator can go back to a page.
getValue(String segment) String
Get value from URL following the provided segment.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
open({required String name, Map<String, String> values = const {}, bool updateHistory = true}) → void
Open a page on Navigator's stack.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited