MadUrlParser class abstract
An abstract base class for parsing and restoring URL routes in a Flutter application.
This class provides a foundation for implementing custom URL parsing logic that integrates with the app's navigation system. It works in conjunction with MadNavigationService to maintain the application state based on the URL.
Subclasses should implement restoreRouteInformation to provide custom URL generation logic, and may override parseRouteInformation for custom URL parsing if needed.
- Inheritance
-
- Object
- RouteInformationParser<
MadNavigationState> - MadUrlParser
Constructors
- MadUrlParser()
-
Creates a new MadUrlParser with the given
navigationService.const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
The navigation service used to access the current app state.
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 info) → Future< MadNavigationState> -
Parses the given
infointo a MadNavigationState.override -
parseRouteInformationWithDependencies(
RouteInformation routeInformation, BuildContext context) → Future< MadNavigationState> -
Converts the given route information into parsed data to pass to a
RouterDelegate.
inherited
-
restoreRouteInformation(
MadNavigationState state) → RouteInformation -
Restores route information from the given
state.override -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited