LevelRatioUnit enum

Represents units of logarithmic level ratio.

LevelRatioUnit models relative gain or attenuation, not an absolute level. The base unit for internal conversion is decibel (dB).

Inheritance
Implemented types
Available extensions

Values

decibel → const LevelRatioUnit

Decibel (dB), the base unit for level ratio conversions.

const LevelRatioUnit(1, 'dB')
neper → const LevelRatioUnit

Neper (Np), using the amplitude convention.

const LevelRatioUnit(LevelRatioFactors.decibelsPerNeper, 'Np')

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 all units, since logarithmic ratio units are not tied to any unit system.
no setteroverride
isSI bool
The decibel and neper are non-SI units accepted for use with the SI, but neither is itself an SI unit, so this always returns false.
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 display symbol for this level ratio 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<LevelRatioUnit>
A constant List of the values in this enum, in order of their declaration.