PressureUnit enum

Represents units of pressure.

This enum implements the Unit interface to provide conversion capabilities and a display symbol for each pressure unit. All conversion factors are pre-calculated in the constructor relative to Pascal (Pa).

Inheritance
Implemented types
Available extensions

Values

pascal → const PressureUnit

Pascal (Pa), the SI derived unit of pressure.

const PressureUnit(1, 'Pa')
atmosphere → const PressureUnit

Atmosphere (atm), standard atmosphere.

const PressureUnit(PressureFactors.pascalsPerAtmosphere, 'atm')
bar → const PressureUnit

Bar (bar).

const PressureUnit(PressureFactors.pascalsPerBar, 'bar')
psi → const PressureUnit

Pound per square inch (psi).

const PressureUnit(PressureFactors.pascalsPerPsi, 'psi')
torr → const PressureUnit

Torr (Torr), approximately 1 mmHg.

const PressureUnit(PressureFactors.pascalsPerTorr, 'Torr')
millimeterOfMercury → const PressureUnit

Millimeter of mercury (mmHg) at 0°C.

const PressureUnit(PressureFactors.pascalsPerMillimeterOfMercury, 'mmHg')
inchOfMercury → const PressureUnit

Inch of mercury (inHg) at 0°C.

const PressureUnit(PressureFactors.pascalsPerInchOfMercury, 'inHg')
megapascal → const PressureUnit

Megapascal (MPa).

const PressureUnit(PressureFactors.pascalsPerMegapascal, 'MPa')
kilopascal → const PressureUnit

Kilopascal (kPa).

const PressureUnit(PressureFactors.pascalsPerKilopascal, 'kPa')
hectopascal → const PressureUnit

Hectopascal (hPa).

const PressureUnit(PressureFactors.pascalsPerHectopascal, 'hPa')
millibar → const PressureUnit

Millibar (mbar), equivalent to hectopascal.

const PressureUnit(PressureFactors.pascalsPerMillibar, 'mbar')
centimeterOfWater → const PressureUnit

Centimeter of water (cmH₂O) at 4°C.

const PressureUnit(PressureFactors.conventionalPascalsPerCentimeterOfWater4C, 'cmH₂O')
inchOfWater → const PressureUnit

Inch of water (inH₂O) at 4°C.

const PressureUnit(PressureFactors.conventionalPascalsPerInchOfWater4C, 'inH₂O')

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
name String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
symbol String
The human-readable symbol for this pressure unit (e.g., "Pa", "psi").
final

Methods

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 other) bool
The equality operator.
inherited

Constants

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