shiftToNormal method
Returns two offsets (current and offset
) where one is positioned at a (0,0) offset
Implementation
(Offset, Offset) shiftToNormal(Offset offset) {
final delta = Offset(0.0 - min(dx, offset.dx), 0.0 - min(dx, offset.dx));
final result = (this + delta, offset + delta);
return result;
}