Pressure enum

Represents units of pressure measurement.

Inheritance
Mixed in types

Constructors

Pressure(String name, String abbr)
const

Values

hectoPa → const Pressure
const Pressure('Hectopascal', 'hPa')
mbar → const Pressure
const Pressure('Millibar ', 'mbar')
mmHg → const Pressure
const Pressure('Millimetre of mercury', 'mmHg')
kPa → const Pressure
const Pressure('Kilopascal', 'kPa')
atm → const Pressure
const Pressure('Atmosphere', 'atm')
inHg → const Pressure
const Pressure('Inch of mercury', 'inHg')

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

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 pressure from hPa 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<Pressure>
A constant List of the values in this enum, in order of their declaration.