ElectricFieldStrengthUnits.potentialLength constructor

ElectricFieldStrengthUnits.potentialLength(
  1. ElectricPotentialDifferenceUnits epdu,
  2. LengthUnits lu
)

Constructs a instance from a potential difference and length.

Implementation

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