DefaultRoute class
- Inheritance
-
- Object
- RouteSettings
- DefaultRoute
Constructors
-
DefaultRoute.new({required String path, String label = '', Map<
String, String> queryParameters = const {}, Map<String, String> pathParameters = const {}, Map<String, dynamic> ? metadata = const {}, String? group, String? cacheKey, Object? arguments}) -
DefaultRoute.fromUri(Uri uri, {String label = '', String? group, Map<
String, dynamic> ? metadata, String? cacheKey}) -
factory
-
DefaultRoute.fromUrl(String url, {String label = '', String? group, Map<
String, dynamic> ? metadata, String? cacheKey}) -
factory
Properties
- arguments → Object?
-
The arguments passed to this route.
finalinherited
- cacheKey → String?
-
A unique cache key for this route, used to manage page caching
final
- group → String?
-
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- label → String
-
final
-
metadata
→ Map<
String, dynamic> ? -
final
- name → String?
-
The name of the route (e.g., "/settings").
finalinherited
- path → String
-
final
-
pathParameters
→ Map<
String, String> -
final
-
queryParameters
→ Map<
String, String> -
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- uri → Uri
-
no setter
Methods
-
copyWith(
{String? label, String? path, Map< String, String> ? queryParameters, Map<String, String> ? pathParameters, Map<String, dynamic> ? metadata, String? group, String? cacheKey, Object? arguments}) → DefaultRoute -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
-
operator [](
String key) → dynamic