discontinuedPackage automated_testing_framework has been discontinued.

ScreenshotResponse class

Response containing a screenshot image. This may come from a RunTestCommand's ScreenshotStep or from a StartScreenshotStreamCommand.

Inheritance

Constructors

ScreenshotResponse({required Uint8List image, String? message, bool? success})

Properties

hashCode → int
The hash code for this object.
no setterinherited
image → Uint8List
final
message → String?
The optional message associated with the response.
finalinherited
payload → dynamic
The type-specific payload. The value of which is defined by each sub-class.
finalinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
success → bool?
Optional success flag. If set the process is complete. If null, the process associated with the command is still running.
finalinherited
type → String
The type. Used to define the payload and response class.
finalinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
Abstract function that concrete classes must implement. This must encode the internal data model to a JSON compatible representation.
inherited
toString() → String
Returns the string encoded JSON representation for this class. This will remove all null values and empty collections from the returned string.
inherited

Operators

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

Static Methods

fromDynamic(dynamic map, String? message, bool? success) → ScreenshotResponse
Processes a Map or Map-like object into a response. If the map is null then this will return null.
override

Constants

kResponseType → const String