PlatformSelector class Null safety
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-onlyoverride
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
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 non-existent 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.
PlatformSelector._(BooleanSelector.all)