ModuleCall constructor
ModuleCall(})
Implementation
ModuleCall(
this.localName, {
required this.source,
this.version,
Map<String, TfArg<dynamic>?> inputs = const {},
Map<String, StackProvider> providers = const {},
this.dependsOn,
this.count,
this.forEach,
}) : inputs = Map<String, TfArg<dynamic>?>.unmodifiable(inputs),
providers = Map<String, StackProvider>.unmodifiable(providers) {
if (localName.trim().isEmpty) {
throw ArgumentError.value(localName, 'localName', 'must not be empty');
}
if (source.trim().isEmpty) {
throw ArgumentError.value(source, 'source', 'must not be empty');
}
for (final name in this.inputs.keys) {
if (reservedInputNames.contains(name)) {
throw ArgumentError.value(
name,
'inputs',
'is a module meta-argument, not an input; pass it as the '
'matching `ModuleCall` parameter',
);
}
}
}