ComplexSelector constructor

ComplexSelector(
  1. Iterable<CssValue<Combinator>> leadingCombinators,
  2. Iterable<ComplexSelectorComponent> components,
  3. FileSpan span, {
  4. bool lineBreak = false,
})

Implementation

ComplexSelector(Iterable<CssValue<Combinator>> leadingCombinators,
    Iterable<ComplexSelectorComponent> components, super.span,
    {this.lineBreak = false})
    : leadingCombinators = List.unmodifiable(leadingCombinators),
      components = List.unmodifiable(components) {
  if (this.leadingCombinators.isEmpty && this.components.isEmpty) {
    throw ArgumentError(
        "leadingCombinators and components may not both be empty.");
  }
}