DiffImage class

Constructors

DiffImage()

Properties

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

Static Methods

compareFromFile(File firstImageFile, File secondImageFile, {bool asPercentage = true, bool ignoreAlpha = true}) Future<DiffImgResult>
Computes the diffence between two image files with the same width and heigth by receiving two File objects (one for each image). Returns a DiffImgResult containing two items:
compareFromMemory(Image firstImage, Image secondImage, {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 firstImageSrc, dynamic secondImageSrc, {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:
saveImage({required Image image, required String name, String directory = ''}) Future<File>
Function to store an Image object as PNG in local storage. Not supported on web.