ScenariosPackage class

Inheritance

Constructors

ScenariosPackage(Pkg pkg, {String? directory, List<String>? languages, double? captureScale, ScenarioTime? time})
const

Properties

captureScale → double?
Screenshot pixels per logical pixel for every run of this package — 3 renders retina captures, at roughly the device ratio's cost in time and bytes. Null means 1, the measured sweet spot; a run's own capture-scale argument still wins.
final
directory → String?
Where this package keeps its scenarios, relative to the package. When null, discovery walks all of test/ — a scenario is an ordinary widget test and may sit next to the rest of them — and new writes to test/scenarios. Declaring a directory narrows both to it.
final
hashCode → int
The hash code for this object.
no setterinherited
languages → List<String>?
The locale tags this app supports — ['en', 'fr'] — offered by the language axis. Null means the axis offers no list and runs stay on the platform default.
final
path → String
no setterinherited
pkg → Pkg
finalinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
time → ScenarioTime?
The folder's clock. ScenarioTime.real() runs it on the wall clock with real sockets, one guest per scenario. Must agree with the folder's own runScenarios(time: …); the harness refuses at probe when they differ. Null is ScenarioTime.fake.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, Object?>
Must include path; the rest is whatever the plugin needs.
override
toString() → String
A string representation of this object.
inherited

Operators

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

Static Methods

each(List<Pkg> packages) → List<ScenariosPackage>