PlatformSelector class final

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.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
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.

Operators

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

Constants

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