isCompatible method
Indicates if this unit is compatible with the unit specified.
Units don't need to be equals to be compatible.
Implementation
bool isCompatible(Unit that) =>
(this == that) ||
standardUnit == that.standardUnit ||
dimension == that.dimension;