ComparisonResult class Null safety

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.
read-onlyinherited
passed bool
Indicates whether or not a pixel comparison test has failed.
final
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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