TakeScreenshot class
Takes a screenshot of the current screen.
This action can be invoked either using the short-hand version:
- takeScreenshot: "my_screenshot.png"
Or using the verbose version:
- takeScreenshot:
path: "my_screenshot.png"
pixelRatio: 1.5
Constructors
- TakeScreenshot({required String path, double? pixelRatio})
-
Takes a screenshot of the current screen.
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- path → String
-
The file path to save the screenshot to.
final
- pixelRatio → double?
-
Optional pixel ratio to take screenshot with, defaults to device pixel
ratio.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
description(
) → String -
A human readable description of the action.
override
-
execute(
Tester tester) → Future< bool> -
Called when it executes the action in a flow file.
override
-
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