SelectorList class final
A selector list.
A selector list is composed of ComplexSelectors. It matches any element that matches any of the component selectors.
Constructors
-
SelectorList(Iterable<
ComplexSelector> components, FileSpan span) - SelectorList.parse(String contents, {Object? url, Logger? logger, InterpolationMap? interpolationMap, bool allowParent = true, bool plainCss = false})
-
Parses a selector list from
contents
.factory
Properties
- asSassList → SassList
-
Returns a SassScript list that represents this selector.
no setter
-
components
→ List<
ComplexSelector> -
The components of this selector.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- isBogus → bool
-
Whether this selector is not valid CSS.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- span → FileSpan
-
The source span associated with the node.
finalinherited
Methods
-
accept<
T> (SelectorVisitor< T> visitor) → T -
Calls the appropriate visit method on
visitor
.override -
assertNotBogus(
{String? name}) → void -
Prints a warning if
this
is a bogus selector.inherited -
isSuperselector(
SelectorList other) → bool -
Whether this is a superselector of
other
. -
nestWithin(
SelectorList? parent, {bool implicitParent = true, bool preserveParentSelectors = false}) → SelectorList -
Returns a new selector list that represents
this
nested withinparent
. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
unify(
SelectorList other) → SelectorList? -
Returns a SelectorList that matches only elements that are matched by
both this and
other
.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override