buildRequestParam1<S extends RequestParam, V> function
S
buildRequestParam1<S extends RequestParam, V>(
- ServerRpcVersion? version,
- V arg, {
- String? label,
- Iterable<
ParamBuilderEntry1< versionBuilers = const [],S, V> > - required S nullVersionBuilder(
- V arg
- S defaultVersionBuilder(
- V arg
Implementation
S buildRequestParam1<S extends RequestParam, V>(
ServerRpcVersion? version,
V arg, {
String? label,
Iterable<ParamBuilderEntry1<S, V>> versionBuilers = const [],
required S Function(V arg) nullVersionBuilder,
S Function(V arg)? defaultVersionBuilder,
}) =>
_buildParam(
label: label,
version: version,
args: [arg],
versionBuilers: versionBuilers
.map((e) => MapEntry(e.key, (args) => e.value(args[0]))),
nullVersionBuilder: (args) => nullVersionBuilder(args.first),
defaultVersionBuilder: defaultVersionBuilder != null
? (args) => defaultVersionBuilder(args.first)
: null,
);