buildRequestParam2<S extends RequestParam, V1, V2> function
S
buildRequestParam2<S extends RequestParam, V1, V2>(
- ServerRpcVersion? version,
- V1 arg1,
- V2 arg2, {
- String? label,
- Iterable<
ParamBuilderEntry2< versionBuilers = const [],S, V1, V2> > - required S nullVersionBuilder(
- V1 arg1,
- V2 arg2
- S defaultVersionBuilder(
- V1 arg1,
- V2 arg2
Implementation
S buildRequestParam2<S extends RequestParam, V1, V2>(
ServerRpcVersion? version,
V1 arg1,
V2 arg2, {
String? label,
Iterable<ParamBuilderEntry2<S, V1, V2>> versionBuilers = const [],
required S Function(V1 arg1, V2 arg2) nullVersionBuilder,
S Function(V1 arg1, V2 arg2)? defaultVersionBuilder,
}) =>
_buildParam(
label: label,
version: version,
args: [arg1, arg2],
versionBuilers: versionBuilers
.map((e) => MapEntry(e.key, (args) => e.value(args[0], args[1]))),
nullVersionBuilder: (args) => nullVersionBuilder(args[0], args[1]),
defaultVersionBuilder: defaultVersionBuilder != null
? (args) => defaultVersionBuilder(args[0], args[1])
: null,
);