operator > method

bool operator >(
  1. Temperature other
)

Check this Temperature has greater measurment of other.

Implementation

bool operator >(Temperature other) => compareTo(other) > 0;