ServerInvocation class final

Adapter-owned state scoped to one server request.

Constructors

ServerInvocation({Object? bindings, void waitUntil(Future<void> task)?, ServerInvocationErrorHandler? onError})
Creates an invocation from opaque platform bindings.

Properties

bindings → Object?
Opaque bindings supplied by the hosting adapter.
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
supportsWaitUntil → bool
Whether the adapter can extend the request lifetime.
no setter

Methods

maybeBindings<T extends Object>() → T?
Returns the platform bindings when they have type T.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
requireBindings<T extends Object>() → T
Returns the platform bindings as T or throws when unavailable.
toString() → String
A string representation of this object.
inherited
waitUntil(Future<void> task) → void
Keeps task alive without delaying the response.

Operators

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

Static Properties

empty → ServerInvocation
Sentinel for manually created request contexts without an invocation.
final