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({String? error, Image? isolated, Image? masked, required bool passed})
Creates a new ComparisonResult for the current test.

Properties

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
isolated Image?
final
masked Image?
final
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

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