Celsius class

Celsius is a unit of Tempurture which used by majority countries

Here is the concept of Celsius

  • Water bwoling and melting
    • Melting point: ~ 0°C
    • Bowling point: ~ 100°C
  • Human normal temperature: 37.5°C
Inheritance

Constructors

Celsius(num value)
Assign Celsius value

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
symbol String
Symbol of WeatherUnit
no setter
toFahrenheit Fahrenheit
Convert to Fahrenheit
no setter
value double
Actual value of this WeatherUnit
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toFixed(int fractionDigits) double
Export from toFixedString then invoke double.parse. Therefore, it is impossible to invoke FormatException
inherited
toFixedDoubleStringValue(int fractionDigits) String
Export fixed double String with fractionDigits
inherited
toString() String
Convert to String for displaying Tempurture data
inherited

Operators

operator <(Object compare) bool
Compare this tempurture is cooler than compare
override
operator <=(Object compare) bool
Compare this tempurture is cooler or equal compare
override
operator ==(Object compare) bool
Compare this tempurture is the same with compare
override
operator >(Object compare) bool
Compare this tempurture is warmer than compare
override
operator >=(Object compare) bool
Compare this tempurture is warmer or equal compare
override