GetInformationParser class

A custom route information parser for GetX navigation system.

This parser converts between route information (URL and state) and GetNavConfig objects. It handles route matching and provides default route behavior when necessary.

Example usage:

// Basic usage with default initial route
final parser = GetInformationParser();

// Custom initial route
final parser = GetInformationParser(initialRoute: '/home');

// Using with Router
Router(
  routeInformationParser: GetInformationParser(),
  routerDelegate: GetRouterDelegate(...),
  routeInformationProvider: GetRouteInformationProvider(),
)
Inheritance

Constructors

GetInformationParser({String initialRoute = '/'})
Creates a new GetInformationParser instance.

Properties

hashCode int
The hash code for this object.
no setterinherited
initialRoute String
The route path to use when no specific route is provided.
final
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
parseRouteInformation(RouteInformation routeInformation) SynchronousFuture<GetNavConfig>
Converts route information from the system into a GetNavConfig.
override
parseRouteInformationWithDependencies(RouteInformation routeInformation, BuildContext context) Future<GetNavConfig>
Converts the given route information into parsed data to pass to a RouterDelegate.
inherited
restoreRouteInformation(GetNavConfig configuration) RouteInformation
Converts a GetNavConfig back into route information.
override
toString() String
A string representation of this object.
inherited

Operators

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