RouteDataContext class
Request-scoped context passed to a MetaMantleDataProvider.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
headers
→ Map<
String, String> -
Safe read-only view of HTTP request headers.
final
- locale → String?
-
Resolved request locale or language code (e.g. 'en', 'es').
final
-
parameters
→ Map<
String, String> -
Dynamic route parameters extracted from pattern (e.g.
{'slug': 'basmati-rice'}).final - path → String
-
Normalized request path (e.g. '/products/basmati-rice/').
final
-
queryParameters
→ Map<
String, String> -
Parsed query parameters.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
services
→ Map<
Object, Object> -
Application services or dependency injection container scoped to this request.
final
- timeout → Duration
-
Operation timeout duration.
final
- timestamp → DateTime
-
Timestamp when the request was received.
final
Methods
-
getService<
S> () → S? -
Retrieves a request-scoped service of type
S. -
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