operator - method Null safety
- OffsetPair other
Subtracts the other.global
from global and other.local
from local.
Implementation
OffsetPair operator-(OffsetPair other) {
return OffsetPair(
local: local - other.local,
global: global - other.global,
);
}