TestImage class

Represents an image from a test.

Annotations
  • @immutable

Constructors

TestImage({int? captureTime, required bool goldenCompatible, String? hash, required String id, Uint8List? image})

Properties

captureTime int
The time the image was captured in UTC Millis.
final
goldenCompatible bool
Set to true if this image can be saved as a golden image. Set to false if it contains dynamic data that can't be automatically handled and is meant to be manually reviewed instead.
final
hash String
A sha256 hash of the image bytes
final
hashCode int
The hash code for this object.
no setterinherited
id String
The identifier for the screenshot
final
image Uint8List?
The actual bytes from the image.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson([bool includeImageData = false]) Map<String, dynamic>
Abstract function that concrete classes must implement. This must encode the internal data model to a JSON compatible representation.
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) TestImage
toJsonList(List<TestImage>? images, [bool includeImageData = false]) List<Map<String, dynamic>>?
Converts the given list of JsonClass objects into JSON. If the given list is null` then null will be returned.