Routing mixin Null safety

Mixin to Context extends default Context additional fields specified for Router

Superclass Constraints

Properties

routerPrefix String
read / write
params Map<String, String>
RegExp route params
read / write
query Map<String, String>
Uri.params
read-only
body ↔ dynamic
read / writeinherited
error HttpError?
Error if ctxThrow
read / writeinherited
request HttpRequest
base HttpRequest
read-onlyinherited
response HttpResponse
base HttpResponse
read-onlyinherited
headers HttpHeaders
base response HttpHeaders
read-onlyinherited
statusCode int
Response status code
read / writeinherited
contentType ContentType?
Response Content-type field of headers
read / writeinherited
hashCode int
The hash code for this object.
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
set(String key, String value) → void
Set Response HttpHeaders field key - key of header value - value for key of header
inherited
throwError(int status, {String? message, StackTrace? stackTrace, Exception? exception}) → void
Throw HttpError with status code, message and stackTrace and error
inherited
toString() String
A string representation of this object.
inherited

Operators

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