DVMiddlewareResult class

The outcome of running a route's declared middleware.

Constructors

DVMiddlewareResult({required bool allowed, required int status, required String message, required Map<String, String> headers, required Map<String, Object?> data})
const

Properties

allowed → bool
Whether the handler should run.
final
data → Map<String, Object?>
What the chain resolved, for the handler to read: the locale, the tenant, the enabled flags.
final
hashCode → int
The hash code for this object.
no setterinherited
headers → Map<String, String>
Headers to add to the handler's response.
final
message → String
What to say when it should not. Never contains anything from the request.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
status → int
The status to answer with when it should not.
final

Methods

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