Celsius class

A common Temperature unit uses most contries and regions.

Inheritance

Constructors

Celsius(double value)
Construct Celsius with value of measurment.
Celsius.fromFahrenheit(Fahrenheit fahrenheit)
Convert fahrenheit's value to same measure in Celsius.
factory

Properties

hashCode int
Calculate hashed of unit, value and runtimeType.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
unit String
A symbol that repersenting this Temperature.
no setteroverride
value double
A double that describe measure in this unit.
finalinherited

Methods

compareTo(Temperature other) int
Compare this Temperature to other in the same measurment.
inherited
equalsInMeasure(Temperature other) bool
Check this Temperature has the same measurment of other.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator +(Object add) Celsius
Add num or Temperature in the same measurment.
override
operator -(Object subtract) Celsius
Subtract num or Temperature in the same measurment.
override
operator <(Temperature other) bool
Check this Temperature has lower measurment of other.
inherited
operator <=(Temperature other) bool
Check this Temperature has lower or equal measurment of other.
inherited
operator ==(Object? other) bool
Check this Temperature has same hashCode with other.
inherited
operator >(Temperature other) bool
Check this Temperature has greater measurment of other.
inherited
operator >=(Temperature other) bool
Check this Temperature has greater or equal measurment of other.
inherited