DiffImage class

Constructors

DiffImage()

Properties

hashCode int
The hash code for this object.
read-onlyinherited
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

Static Methods

compareFromMemory(Image firstImg, Image secondImg, {bool asPercentage = true, bool ignoreAlpha = true}) DiffImgResult
Computes the diffence between two images with the same width and heigth by receiving two Image objects (one for each image). Returns a DiffImgResult containing two items:
compareFromUrl(dynamic firstImgSrc, dynamic secondImgSrc, {bool asPercentage = true, bool ignoreAlpha = true}) Future<DiffImgResult>
Computes the diffence between two images with the same width and heigth by receiving two URLs (one for each image). Retrieves both by using an HTTP request and returns a DiffImgResult containing two items:
saveDiffImg({Image diffImg}) Future<void>
Function to store an Image object as PNG in local storage. Not supported on web.