PlaybookShot class
One capture taken during a playbook run.
Constructors
- PlaybookShot({required String id, required PlaybookShotKind kind, required Screenshot? screenshot, String? name, String? locale, String? theme, String? store, String? nativeFallback})
-
Creates a shot.
const
- PlaybookShot.native({required String id, required String? name, String? locale, String? theme})
-
Creates a shot Metro took with the iOS Simulator or adb, for a
screenshot()step. Metro saved the PNG itself.const
Properties
- bytes → Uint8List?
-
The PNG, or null for a PlaybookShot.native shot.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
The id Metro collects it by, e.g.
s3.final - isNative → bool
-
Whether Metro took it with the iOS Simulator or adb.
no setter
- kind → PlaybookShotKind
-
Why it was taken.
final
- locale → String?
-
The locale a
screenshot(locales: ...)step took this shot in.final - name → String?
-
The name given to
screenshot(), for PlaybookShotKind.marked.final - nativeFallback → String?
-
Why Metro couldn't capture a
screenshot()step it was asked for, so the app captured it instead, or null.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- screenshot → Screenshot?
-
The capture, or null for a PlaybookShot.native shot.
final
- store → String?
-
The id of the store size it was converted to, e.g.
ios-6.9.final - theme → String?
-
The theme a
screenshot(themes: ...)step took this shot in.final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, Object?> - The shot as it's reported in a step event, without the PNG.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited