ServerFunctionRef<I, O> constructor

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

Creates a reference emitted by the route compiler.

Implementation

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