PlatformSelector class

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

This uses the boolean selector syntax.

Constructors

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

Properties

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

Methods

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.
toString() String
Returns a string representation of this object.
override
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.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited

Operators

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

Constants

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