QueriesExtractable<T> class
final
Extracts every query value as a map.
@Queries() TodoFilter filter decodes this map through the type's
Deserialize implementation; @Queries() Map<String, String> raw takes it
as-is.
- Implemented types
- Available extensions
Constructors
-
QueriesExtractable(T deserialize(Map<
String, String> queries)) -
Decodes the query map with
deserialize.const
Properties
-
deserialize
→ T Function(Map<
String, String> queries) -
Builds the value from the collected query pairs.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
extract(
Request request) → Future< Result< T, Rejection> > -
Produces the value, or the rejection that stops the handler.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
require(
Request request) → Future< T> -
Available on FromRequestParts<
Extracts the value, throwing the Rejection when extraction fails.T> , provided by the RequireExtraction extension -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited