ElectricChargeUnit enum
Represents units of electric charge.
This enum implements the Unit 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')
- 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')
- 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')
- 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
- 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.