Go class
A utility class for simplifying navigation in a Flutter app.
Constructors
- Go(BuildContext context, {String? routeName, MyRouteArguments? arguments, dynamic data})
- Creates a Go instance with the provided parameters.
Properties
- arguments → MyRouteArguments?
-
final
- context → BuildContext
-
final
- data → dynamic
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- routeName → String?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
backWithData(
) → void - Navigates back to the previous screen with provided data.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onTapRecognizeGesture(
) → TapGestureRecognizer - Sets up a tap gesture recognizer for the onTapRecognizeGesture method.
-
pop(
) → void - Pops the current route from the navigation stack.
-
popUntilNamedRoute(
) → void - Pops until a specific route is reached.
-
replaceWithNamedRoute(
) → void - Replaces the current route with a named route.
-
replaceWithNamedRouteWithArgs(
) → void - Replaces the current route with a named route and optional arguments.
-
to(
) → void - Navigates to the specified route with optional arguments.
-
toAndClearAll(
) → void - Navigates to the specified route and removes all other routes from the stack.
-
toAndClearAllNamedRoute(
) → void - Navigates to a new route and removes all previous routes from stack.
-
toAndClearAllReplacementNamedRoute(
) → void - Navigates to a new route, clearing all previous routes in stack.
-
toAndReplaceAllNamedRoute(
) → void - Navigates to a new route, replacing all previous routes in stack.
-
toNamedRouteWithArgs(
) → void - Navigates to a named route with specified arguments.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited