Temperature class

A class for holding a temperature. Can output temperature as Kelvin, Celsius or Fahrenheit. All results are returned as double.

Constructors

Temperature(double _kelvin)

Properties

celsius → double
Convert temperature to Celsius
read-only
fahrenheit → double
Convert temperature to Fahrenheit
read-only
kelvin → double
Convert temperature to Kelvin
read-only
hashCode → int
The hash code for this object.
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

toString() → String
Returns a string representation of this object.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited

Operators

operator ==(dynamic other) → bool
The equality operator.
inherited