operator + method
Add num or Temperature in the same measurment.
If add
is num, it assume add
is using same unit on this
Temperature.
Implementation
@override
Celsius operator +(Object add) => Celsius(this.value + _getOtherValue(add));
Add num or Temperature in the same measurment.
If add
is num, it assume add
is using same unit on this
Temperature.
@override
Celsius operator +(Object add) => Celsius(this.value + _getOtherValue(add));