PlatformSelector class

An expression for selecting certain platforms, including operating systems and browsers.

This uses the boolean selector syntax.


PlatformSelector.parse(String selector, [SourceSpan span])
Parses selector. [...]


hashCode int
The hash code for this object. [...]
read-only, override
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited


evaluate(SuitePlatform platform) bool
Returns whether the selector matches the given platform. [...]
intersection(PlatformSelector other) PlatformSelector
Returns a new PlatformSelector that matches only platforms matched by both this and other.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
toString() String
Returns a string representation of this object.
validate(Set<String> validVariables) → void
Throws a FormatException if this selector uses any variables that don't appear either in validVariables or in the set of variables that are known to be valid for all selectors.


operator ==(dynamic other) bool
The equality operator. [...]


all → const PlatformSelector
A selector that declares that a test can be run on all platforms.
const PlatformSelector._(BooleanSelector.all)