ForwardRule.show constructor

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

Creates a @forward rule that allows only members included in shownMixinsAndFunctions and shownVariables to be accessed.

Implementation

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