ElectricChargeUnit enum

Represents units of electric charge.

This enum implements the LinearUnit interface to provide conversion capabilities and a display symbol for each electric charge unit. All conversion factors are pre-calculated in the constructor relative to Coulomb (C).

Inheritance
Implemented types
Available extensions

Values

coulomb → const ElectricChargeUnit

Coulomb (C), the SI derived unit of electric charge.

const ElectricChargeUnit(1, 'C')
kilocoulomb → const ElectricChargeUnit

Kilocoulomb (kC), a multiple of the Coulomb.

const ElectricChargeUnit(ElectricChargeFactors.coulombsPerKilocoulomb, 'kC')
millicoulomb → const ElectricChargeUnit

Millicoulomb (mC), a sub-multiple of the Coulomb.

const ElectricChargeUnit(ElectricChargeFactors.coulombsPerMillicoulomb, 'mC')
microcoulomb → const ElectricChargeUnit

Microcoulomb (µC), a sub-multiple of the Coulomb.

const ElectricChargeUnit(ElectricChargeFactors.coulombsPerMicrocoulomb, 'µC')
nanocoulomb → const ElectricChargeUnit

Nanocoulomb (nC), a sub-multiple of the Coulomb.

const ElectricChargeUnit(ElectricChargeFactors.coulombsPerNanocoulomb, 'nC')
picocoulomb → const ElectricChargeUnit

Picocoulomb (pC), a sub-multiple of the Coulomb.

const ElectricChargeUnit(ElectricChargeFactors.coulombsPerPicocoulomb, 'pC')
elementaryCharge → const ElectricChargeUnit

Elementary Charge (e), the charge of a single proton.

const ElectricChargeUnit(ElectricChargeFactors.coulombsPerElementaryCharge, 'e')
ampereHour → const ElectricChargeUnit

Ampere-hour (Ah), a unit commonly used for battery capacity.

const ElectricChargeUnit(ElectricChargeFactors.coulombsPerAmpereHour, 'Ah')
milliampereHour → const ElectricChargeUnit

Milliampere-hour (mAh), a smaller unit for battery capacity.

const ElectricChargeUnit(ElectricChargeFactors.coulombsPerMilliampereHour, 'mAh')
statcoulomb → const ElectricChargeUnit

Statcoulomb (statC) or Franklin (Fr), the CGS-ESU unit of charge.

const ElectricChargeUnit(ElectricChargeFactors.coulombsPerStatcoulomb, 'statC')
franklin → const ElectricChargeUnit

Statcoulomb (statC) or Franklin (Fr), the CGS-ESU unit of charge.

const ElectricChargeUnit(ElectricChargeFactors.coulombsPerStatcoulomb, 'Fr')
abcoulomb → const ElectricChargeUnit

Abcoulomb (abC), the CGS-EMU unit of charge.

const ElectricChargeUnit(ElectricChargeFactors.coulombsPerAbcoulomb, 'abC')

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 the physics-constant elementaryCharge, the CGS units statcoulomb, franklin, and abcoulomb, and ampereHour / milliampereHour (which contain the non-metric hour); true for all decimal multiples/submultiples of the coulomb.
no setteroverride
isSI bool
Returns true only for coulomb, the SI derived unit of electric charge.
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

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