DiffRect class

One region that changed.

Constructors

DiffRect({required int x, required int y, required int width, required int height, required int pixels})
const

Properties

area → int
no setter
hashCode → int
The hash code for this object.
no setterinherited
height → int
final
pixels → int
How many pixels inside the rect actually changed. A diagonal line's bounding box is mostly untouched, and a reader ranking regions wants the count rather than the box.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
width → int
final
x → int
final
y → int
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, Object?>
toString() → String
A string representation of this object.
override
union(DiffRect other) → DiffRect
The bounding box of both, their changed pixels summed — exact, because components never share a pixel.

Operators

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

Static Methods

fromJson(Map<String, Object?> json) → DiffRect