SpecificEnergyUnit enum

Represents units of specific energy.

This enum implements the LinearUnit interface to provide conversion capabilities and a display symbol for each specific energy unit. All conversion factors are pre-calculated in the constructor relative to Joule per Kilogram (J/kg).

Inheritance
Implemented types
Available extensions

Values

joulePerKilogram → const SpecificEnergyUnit

Joule per Kilogram (J/kg), the SI derived unit of specific energy.

const SpecificEnergyUnit(SpecificEnergyFactors.joulePerKilogram, 'J/kg')
kilojoulePerKilogram → const SpecificEnergyUnit

Kilojoule per Kilogram (kJ/kg), a common multiple.

const SpecificEnergyUnit(SpecificEnergyFactors.kilojoulePerKilogram, 'kJ/kg')
wattHourPerKilogram → const SpecificEnergyUnit

Watt-hour per Kilogram (Wh/kg), used in battery energy density.

const SpecificEnergyUnit(SpecificEnergyFactors.wattHourPerKilogram, 'Wh/kg')
kilowattHourPerKilogram → const SpecificEnergyUnit

Kilowatt-hour per Kilogram (kWh/kg), also used for energy density.

const SpecificEnergyUnit(SpecificEnergyFactors.kilowattHourPerKilogram, 'kWh/kg')

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 true for joulePerKilogram and kilojoulePerKilogram; false for wattHourPerKilogram and kilowattHourPerKilogram (contain the non-metric hour).
no setteroverride
isSI bool
Returns true only for joulePerKilogram, the SI derived unit of specific energy.
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
A human-readable symbol or abbreviation for the unit.
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

nameAliases → const Map<String, SpecificEnergyUnit>
Full word-form names and non-SI abbreviations matched case-insensitively.
symbolAliases → const Map<String, SpecificEnergyUnit>
SI and unit symbols matched strictly case-sensitive.
values → const List<SpecificEnergyUnit>
A constant List of the values in this enum, in order of their declaration.