operator + method

  1. @override
Celsius operator +(
  1. Object add
)
override

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));