PathRouteSettings class Null safety

A more advanced route settings that lets us provide more context when routing

Inheritance
Implemented types

Constructors

PathRouteSettings({required dynamic route, required String? label, String? resolvedPath, RouteParams? routeParams})
Creates data used to construct routes.
PathRouteSettings.ofAppRoute(AppRoute<dynamic, RouteParams> appRoute, {RouteParams? routeParams})
factory

Properties

arguments Object?
The arguments passed to this route. [...]
final, inherited
hashCode int
The hash code for this object. [...]
read-only, inherited
label String?
final
location String?
The location of the application. [...]
read-only, override
name String?
The name of the route (e.g., "/settings"). [...]
final, inherited
resolvedPath String?
final
route String?
final
routeParams RouteParams?
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
state PathRouteSettings
The state of the application in the location. [...]
read-only, override

Methods

copyWith({String? name, Object? arguments}) RouteSettings
Creates a copy of this route settings object with the given fields replaced with the new values.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object. [...]
override

Operators

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