operator - method

  1. @override
Celsius operator -(
  1. Object subtract
)
override

Subtract num or Temperature in the same measurment.

Implementation

@override
Celsius operator -(Object subtract) =>
    Celsius(this.value - _getOtherValue(subtract));