ComparisonResult class

The result of a pixel comparison test.

The ComparisonResult will always indicate if a test has passed. The optional error and diffs parameters provide further information about the result of a failing test.

Constructors

ComparisonResult({required bool passed, required double diffPercent, String? error, Map<String, Image>? diffs})
Creates a new ComparisonResult for the current test.

Properties

diffPercent double
The calculated percentage of pixel difference between two images.
final
diffs Map<String, Image>?
Map containing differential images to illustrate found variants in pixel values in the execution of the pixel test.
final
error String?
Error message used to describe the cause of the pixel comparison failure.
final
hashCode int
The hash code for this object.
no setterinherited
passed bool
Indicates whether or not a pixel comparison test has failed.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

dispose() → void
Disposes the images held by this ComparisonResult.
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