ForwardRule.hide constructor

ForwardRule.hide(
  1. Uri url,
  2. Iterable<String> hiddenMixinsAndFunctions,
  3. Iterable<String> hiddenVariables,
  4. FileSpan span, {
  5. String? prefix,
  6. Iterable<ConfiguredVariable>? configuration,
})

Creates a @forward rule that allows only members not included in hiddenMixinsAndFunctions and hiddenVariables to be accessed.

Implementation

ForwardRule.hide(this.url, Iterable<String> hiddenMixinsAndFunctions,
    Iterable<String> hiddenVariables, this.span,
    {this.prefix, Iterable<ConfiguredVariable>? configuration})
    : shownMixinsAndFunctions = null,
      shownVariables = null,
      hiddenMixinsAndFunctions =
          UnmodifiableSetView(Set.of(hiddenMixinsAndFunctions)),
      hiddenVariables = UnmodifiableSetView(Set.of(hiddenVariables)),
      configuration =
          configuration == null ? const [] : List.unmodifiable(configuration);