Parameter class
Used to apply special dependency injections or functionality to a function parameter.
- Implementers
Constructors
Properties
-
Inject the value of a request cookie.
final
- defaultValue → dynamic
-
Specify a default value.
final
- error → Object?
-
Returns an error that can be thrown when the parameter is not present.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- header → String?
-
Inject the value of a request header.
final
- match → dynamic
-
Only execute the handler if the value of this parameter matches the given value.
final
- query → String?
-
Inject the value of a key from the query.
final
- required → bool?
-
If
true
(default), then an error will be thrown if this parameter is not present.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- session → String?
-
Inject the value of a key from the session.
final
Methods
-
getValue(
RequestContext req) → dynamic - Obtains a value for this parameter from a RequestContext.
-
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