ScenarioAssignment class

One point of a matrix: the device, orientation, language and app axes a scenario is running as.

Constructors

ScenarioAssignment({Device? device, ScreenOrientation? orientation, String? language, Map<String, String> axes = const {}})
const

Properties

axes → Map<String, String>
The value of every axis the folder's profile declares — what s.axis(name) answers with. Always each declared axis, the default included: the default of an app axis is whichever value was listed first, which is an order somebody wrote and not a fact about the platform, so unlike portrait it is said rather than left out.
final
device → Device?
final
hashCode → int
The hash code for this object.
no setterinherited
isEmpty → bool
no setter
label → String
How it reads in a test name: [iPhone 16 · fr], [iPad · landscape · fr], [iPhone 16 · fr · tea].
no setter
language → String?
final
orientation → ScreenOrientation?
Null and ScreenOrientation.portrait mean the same thing here, and both leave every name below untouched — see _landscape.
final
orientedDevice → Device?
The device this assignment actually renders as: the rotation is resolved once, here, and everything downstream reads plain geometry off it.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
slug → String
What names this assignment in a test's description and in an artifact path — iphone-16-fr, ipad-landscape-fr, iphone-16-fr-tea, or the empty string when nothing was assigned.
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited