PlaybookScreenshotFile class

A screenshot a playbook step reported, and where Metro saves it.

Constructors

PlaybookScreenshotFile({required String id, required String kind, required String path, required String file, required String step, String? name, String? locale, String? theme, String? store, bool native = false, String? nativeFallback, int? width, int? height})
Creates a PlaybookScreenshotFile.
const

Properties

file → String
path as it's printed: relative to the project.
final
hashCode → int
The hash code for this object.
no setterinherited
height → int?
The height in pixels the app reported.
final
id → String
The id the app holds the capture under, e.g. s3.
final
isFailure → bool
Whether it shows the screen of a failing step.
no setter
kind → String
Why it was taken: step, marked or failure.
final
locale → String?
The locale it was taken in, when the run captures several.
final
name → String?
The name given to screenshot(), for a marked capture.
final
native → bool
Whether Metro took it with the iOS Simulator or adb, for a screenshot('name') step, rather than the app.
final
nativeFallback → String?
Why Metro couldn't capture a screenshot() step, so the app took it, or null.
final
path → String
Where it's saved.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
shown → String
How it's named on its step's line: the file, after its store and its locale and theme folders when it has them, e.g. ios-6.9/es/cart.png.
no setter
step → String
The title of the step it was taken after.
final
store → String?
The app store size it was drawn at, e.g. ios-6.9, or null for the screen as it is.
final
theme → String?
The theme it was taken in, when the run captures several.
final
width → int?
The size in pixels the app reported.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, Object?>
The --json representation.
toString() → String
A string representation of this object.
inherited

Operators

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