CookieValue class

Shortcut for declaring a request cookie Parameter.

Inheritance

Constructors

CookieValue(String cookie, {dynamic match, dynamic defaultValue, bool required = true})
const

Properties

Inject the value of a request cookie.
finalinherited
defaultValue → dynamic
Specify a default value.
finalinherited
error Object?
Returns an error that can be thrown when the parameter is not present.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
Inject the value of a request header.
finalinherited
match → dynamic
Only execute the handler if the value of this parameter matches the given value.
finalinherited
query String?
Inject the value of a key from the query.
finalinherited
required bool?
If true (default), then an error will be thrown if this parameter is not present.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
session String?
Inject the value of a key from the session.
finalinherited

Methods

getValue(RequestContext req) → dynamic
Obtains a value for this parameter from a RequestContext.
inherited
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