Routing class

Provides logic for routing

Constructors

Routing({required GlobalKey<NavigatorState> navigatorKey})
Creates a new routing instance. The navigatorKey is required for navigating without a BuildContext.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

go<T extends Object?>(String route, {Object? state}) Future<T?>
Navigate to a new route. The state is passed as the route arguments.
goBack<T extends Object?>([T? result]) → void
Navigate to the previous route.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
replace<T extends Object?, TO extends Object?>(String route, {Object? state, TO? result}) Future<T?>
Replace the current route with the new route. The state is passed as the route arguments. result is used to resolve the Future of the current route.
toString() String
A string representation of this object.
inherited

Operators

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