PressureUnit enum

Represents units of pressure.

This enum implements the LinearUnit 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')
micropascal → const PressureUnit

Micropascal (µPa), the international standard reference pressure for acoustics.

const PressureUnit(PressureFactors.pascalsPerMicropascal, 'µ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')
gigapascal → const PressureUnit

Gigapascal (GPa). Required for material science (Young's modulus, tensile strength).

const PressureUnit(PressureFactors.pascalsPerGigapascal, 'GPa')
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
isMetric bool
Returns false for atmosphere, the imperial psi, inchOfMercury, and inchOfWater, the non-decimal torr, millimeterOfMercury and centimeterOfWater (defined via mercury/water column height, not SI-derived), and bar/millibar (a separately named non-SI unit, same category as the litre); true for all decimal multiples/submultiples of the pascal.
no setteroverride
isSI bool
Returns true only for pascal, the SI derived unit of pressure.
no setteroverride
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.