UseRule constructor
UseRule(
- Uri url,
- String? namespace,
- FileSpan span, {
- Iterable<
ConfiguredVariable> ? configuration,
Implementation
UseRule(this.url, this.namespace, this.span,
{Iterable<ConfiguredVariable>? configuration})
: configuration = configuration == null
? const []
: List<ConfiguredVariable>.unmodifiable(configuration) {
for (var variable in this.configuration) {
if (variable.isGuarded) {
throw ArgumentError.value(variable, "configured variable",
"can't be guarded in a @use rule.");
}
}
}