PermeabilityUnits.inductancePerLength constructor

PermeabilityUnits.inductancePerLength(
  1. InductanceUnits iu,
  2. LengthUnits lu
)

Constructs an instance based on inductance and length units.

Implementation

PermeabilityUnits.inductancePerLength(InductanceUnits iu, LengthUnits lu)
    : super.misc(iu.valueSI / lu.valueSI) {
  name = '${iu.name} per ${lu.singular}';
  singular = '${iu.singular} per ${lu.singular}';
  convToMKS = iu.valueSI / lu.valueSI;
  abbrev1 = iu.abbrev1 != null && lu.abbrev1 != null
      ? '${iu.abbrev1} / ${lu.abbrev1}'
      : null;
  abbrev2 = iu.abbrev2 != null && lu.abbrev2 != null
      ? '${iu.abbrev2} ${lu.abbrev2}\u{207b}\u{00b9}'
      : null;
  metricBase = false;
  offset = 0.0;
}