Temp enum

Represents units of temperature measurement.

Inheritance
Mixed in types

Constructors

Temp(String name, String abbr)
const

Values

kelvin → const Temp
const Temp('Kelvin', 'K')
celsius → const Temp
const Temp('Celsius', '°C')
fahrenheit → const Temp
const Temp('Fahrenheit', '°F')

Properties

abbr String
Abbreviation.
final
hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
name String
Full name.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getMeltingPoint() double
The value at which the water freezes.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
value(double value, [int precision = 1]) double
Translating temperature from Kelvin to another.
override
valueToString(double value, [int precision = 0]) String
Converts value to the minimum number of decimal places. Default to 0.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

values → const List<Temp>
A constant List of the values in this enum, in order of their declaration.