GoNavigator class

A class that helps in building and managing routes for a Flutter application.

Constructors

GoNavigator({required Widget initialRoute, required Map<String, Widget Function(BuildContext, Map<String, dynamic>?)> routes})
Creates a new instance of NavigationRouteBuilder to manage routes in the application.

Properties

hashCode int
The hash code for this object.
no setterinherited
initialRoute Widget
final
routes Map<String, Widget Function(BuildContext, Map<String, dynamic>?)>
A map that associates route names with widget constructors.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

generateRoute(RouteSettings routeSettings) MaterialPageRoute<void>
Generates a MaterialPageRoute for a given route based on the provided route settings.
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