CssSelector class

A css selector contains an element name, css classes and attribute/value pairs with the purpose of selecting subsets out of them.

Constructors

CssSelector()

Properties

attrs List<AttributeMatcher>
final
classNames List<String>
final
element String?
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
notSelectors List<CssSelector>
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addAttribute(String name, String? matcher, String? value) → void
addClassName(String name) → void
getMatchingElementTemplate() String
Gets a template string for an element that matches the selector.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setElement([String? element]) → void
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

parse(String selector) List<CssSelector>