MagneticFieldStrengthUnits.currentLength constructor

MagneticFieldStrengthUnits.currentLength(
  1. CurrentUnits ecu,
  2. LengthUnits lu
)

Constructs a instance based on electric current and length units.

Implementation

MagneticFieldStrengthUnits.currentLength(CurrentUnits ecu, LengthUnits lu) : super.misc(ecu.valueSI * lu.valueSI) {
  name = '${ecu.name} per ${lu.singular}';
  singular = '${ecu.singular} per ${lu.singular}';
  convToMKS = ecu.valueSI * lu.valueSI;
  abbrev1 = ecu.abbrev1 != null && lu.abbrev1 != null ? '${ecu.abbrev1} / ${lu.abbrev1}' : null;
  abbrev2 = ecu.abbrev2 != null && lu.abbrev2 != null ? '${ecu.abbrev2}${lu.abbrev2}' : null;
  metricBase = false;
  offset = 0.0;
}