operator - method
Subtracts two results.
Implementation
operator -(Result other) {
Result current = this;
if (modifier != null) {
current = modifier!.modifyOnAdditiveOperation(this, other);
}
if (other.modifier != null) {
other = other.modifier!.modifyOnAdditiveOperation(other, this);
}
return Result(
clean: current.clean - other.clean,
dirtyParts: _mergeDirtyParts(other.dirtyParts, (a, b) => a - b,
current: current.dirtyParts));
}