PathParams<P>.codec constructor
const
PathParams<P>.codec ({
- required P decode(
- PathInput input
- required void encode(
- P value,
- PathOutput output
Creates an explicit runtime codec.
Implementation
const PathParams.codec({
required P Function(PathInput input) decode,
required void Function(P value, PathOutput output) encode,
}) : _decode = decode,
_encode = encode,
isSchema = false;