FrequencyUnit enum
Represents units of frequency.
This enum implements the Unit interface to provide conversion capabilities and a display symbol for each frequency unit. All conversion factors are pre-calculated in the constructor relative to Hertz (Hz).
- Inheritance
- Implemented types
- Available extensions
Values
- hertz → const FrequencyUnit
-
Hertz (Hz), the SI derived unit of frequency, equal to one cycle per second.
const FrequencyUnit(1, 'Hz') - terahertz → const FrequencyUnit
-
Terahertz (THz), a multiple of the Hertz.
const FrequencyUnit(FrequencyFactors.hzPerTerahertz, 'THz') - gigahertz → const FrequencyUnit
-
Gigahertz (GHz), a multiple of the Hertz.
const FrequencyUnit(FrequencyFactors.hzPerGigahertz, 'GHz') - megahertz → const FrequencyUnit
-
Megahertz (MHz), a multiple of the Hertz.
const FrequencyUnit(FrequencyFactors.hzPerMegahertz, 'MHz') - kilohertz → const FrequencyUnit
-
Kilohertz (kHz), a multiple of the Hertz.
const FrequencyUnit(FrequencyFactors.hzPerKilohertz, 'kHz') - revolutionsPerMinute → const FrequencyUnit
-
Revolutions per minute (rpm), a unit of rotational speed.
const FrequencyUnit(FrequencyFactors.hzPerRpm, 'rpm') - beatsPerMinute → const FrequencyUnit
-
Beats per minute (bpm), commonly used for heart rate or music tempo.
const FrequencyUnit(FrequencyFactors.hzPerBpm, 'bpm') - radianPerSecond → const FrequencyUnit
-
Radian per second (rad/s), the SI unit for angular velocity, also a measure of frequency.
const FrequencyUnit(FrequencyFactors.hzPerRadPerSecond, 'rad/s') - degreePerSecond → const FrequencyUnit
-
Degree per second (°/s), a common unit for rotational speed.
const FrequencyUnit(FrequencyFactors.hzPerDegPerSecond, '°/s')
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
-
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
-
values
→ const List<
FrequencyUnit> - A constant List of the values in this enum, in order of their declaration.