Fahrenheit class
Another unit for describing Temperature in some countries and regions.
- Inheritance
-
- Object
- Temperature
- Fahrenheit
Constructors
- Fahrenheit(double value)
-
Construct Fahrenheit with
value
of measurment. - Fahrenheit.fromCelsius(Celsius celsius)
-
Convert
celsius
's value to same measure in Fahrenheit.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) → Fahrenheit -
Add num or Temperature in the same measurment.
override
-
operator -(
Object subtract) → Fahrenheit -
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