FallibleExtractable<T> class final

Hands the rejection to the handler instead of short-circuiting.

Wrap any extractor with this to let a handler declare Result<T, Rejection> and decide what to do about the failure itself.

const outcome = FallibleExtractable(BearerAuth());
Implemented types

Constructors

FallibleExtractable(FromRequestParts<T> inner)
Wraps inner.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
inner FromRequestParts<T>
The extractor whose outcome is passed through.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

extract(Request request) Future<Result<Result<T, Rejection>, 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
toString() String
A string representation of this object.
inherited

Operators

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