ServerStreamFunctionRef<I, T> class
final
Typed reference to a server function that returns a stream.
Constructors
-
ServerStreamFunctionRef({required String id, HttpMethod method = HttpMethod.post, ValueEncoder<
I> ? encodeInput, ValueDecoder<T> ? decodeOutput}) -
Creates a streaming reference emitted by the route compiler.
const
Properties
-
decodeOutput
→ ValueDecoder<
T> ? -
Optional decoder for each serialized stream item.
final
-
encodeInput
→ ValueEncoder<
I> ? -
Optional encoder applied before the input reaches Serializer.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
Stable function identifier in the server manifest.
final
- method → HttpMethod
-
HTTP method used to invoke the function.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
call(
RpcClient client, I data, {Future< void> ? cancelled}) → Future<Stream< T> > -
Invokes this function through
client. -
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