AppRouter class

GoRouter configuration for app navigation

This uses go_router for declarative routing, which provides:

  • Type-safe navigation
  • Deep linking support (web URLs, app links)
  • Easy route parameters
  • Navigation guards and redirects

To add a new route:

  1. Add a route constant to AppRoutes below
  2. Add a GoRoute to the routes list
  3. Navigate using context.go() or context.push()
  4. Use context.pop() to go back.

Constructors

AppRouter()

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

router → GoRouter
final