TargetPlatformVariant class

A TestVariant that runs tests with debugDefaultTargetPlatformOverride set to different values of TargetPlatform.

Inheritance

Constructors

TargetPlatformVariant(Set<TargetPlatform> values)
Creates a TargetPlatformVariant that tests the given values.
const
TargetPlatformVariant.all()
Creates a TargetPlatformVariant that tests all values from the TargetPlatform enum.
TargetPlatformVariant.only(TargetPlatform platform)
Creates a TargetPlatformVariant that tests only the given value of TargetPlatform.

Properties

values Set<TargetPlatform>
Returns an iterable of the variations that this test dimension represents. [...]
final
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

describeValue(TargetPlatform value) String
Returns the string that will be used to both add to the test description, and be printed when a test fails for this variation.
override
setUp(TargetPlatform value) Future<TargetPlatform>
A function that will be called before each value is tested, with the value that will be tested. [...]
override
tearDown(TargetPlatform value, covariant TargetPlatform memento) Future<void>
A function that is guaranteed to be called after a value is tested, even if it throws an exception. [...]
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
Returns a string representation of this object.
inherited

Operators

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