Go class abstract

Constructors

Go()

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

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

context BuildContext
If you need context in any file in your code you can use it
no setter
This is navigatorKey you have to pass it in the MaterialApp in the main.dart
no setter

Static Methods

back<T extends Object?>([T? result]) → void
backAndTo(Widget page) Future<void>
If you want to pop sothing before pushing to another widget you could use it, just pass your widget to go
backAndToName<T extends Object?, TO extends Object?>(String page, {Object? arguments, TO? result}) Future<T?>
If you want to pop sothing before pushing to another widget you could use it, just pass your route name to go
multiBack([int? numOfBacks]) → void
If you need to back to previous page you can use this function, however if you need to pop many routes you simply have to pass how many time you want to pop using numOfBacks. There is no need to pass numOfBacks if you just want to pop one time.
to<T extends Object?>(Widget page, {bool allowSnapshotting = true, bool barrierDismissible = false, bool fullscreenDialog = false, bool maintainState = true, RouteSettings? settings}) Future<T?>
This is simple navigation all you have to do just pass your widget to go
toName<T extends Object?>(String page, {Object? arguments}) Future<T?>
This is simple navigation all you have to do just passing your route name to go
toNameRemoveAll<T extends Object?>(String page, {Object? arguments}) Future<T?>
This is simple navigation all you have to do just pass your route name to go and it will remove all routes from the tree
toRemoveAll<T extends Object?>(Widget page, {bool allowSnapshotting = true, bool barrierDismissible = false, bool fullscreenDialog = false, bool maintainState = true, RouteSettings? settings}) Future<T?>
This is simple navigation all you have to do just pass your widget to go and it will remove all routes from the tree
toReplace<T extends Object?, TO extends Object?>(Widget page, {bool allowSnapshotting = true, bool barrierDismissible = false, bool fullscreenDialog = false, bool maintainState = true, RouteSettings? settings}) Future<T?>
This is simple navigation all you have to do just pass your widget to go and it will remove previous route from the tree
toReplaceName<T extends Object?, TO extends Object?>(String page, {Object? arguments}) Future<T?>
This is simple navigation all you have to do just pass your route name to go and it will remove previous route from the tree