ServerFunctionBinding class final
Generated manifest entry joining an implementation to its wire codecs.
Constructors
-
ServerFunctionBinding(ServerFunction function, {ValueDecoder<
Object?> ? decodeInput, ValueEncoder<Object?> ? encodeOutput}) -
Creates a manifest binding for
function.const
Properties
-
decodeInput
→ ValueDecoder<
Object?> ? -
Decoder generated from the shared input type.
final
-
encodeOutput
→ ValueDecoder<
Object?> ? -
Encoder generated for one output value or stream item.
final
- function → ServerFunction
-
Bound server implementation.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- method → HttpMethod
-
HTTP method accepted by the bound function.
no setter
-
middleware
→ List<
Middleware> -
Middleware applied to the bound function.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
execute(
Object? data, RequestContext request, String id) → FutureOr< Object?> - Executes the binding with its generated decoder.
-
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