operator + method

  1. @override
Fahrenheit 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
Fahrenheit operator +(Object add) =>
    Fahrenheit(this.value + _getOtherValue(add));