ServerFunctionRef<I, O> constructor
const
ServerFunctionRef<I, O> ({
- required String id,
- HttpMethod method = HttpMethod.post,
- ValueEncoder<
I> ? encodeInput, - 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,
});