ServerStreamFunctionRef<I, T> constructor

const ServerStreamFunctionRef<I, T>({
  1. required String id,
  2. HttpMethod method = HttpMethod.post,
  3. ValueEncoder<I>? encodeInput,
  4. ValueDecoder<T>? decodeOutput,
})

Creates a streaming reference emitted by the route compiler.

Implementation

const ServerStreamFunctionRef({
  required this.id,
  this.method = HttpMethod.post,
  this.encodeInput,
  this.decodeOutput,
});