AreaUnits.lengthSquared constructor

AreaUnits.lengthSquared(
  1. LengthUnits lu
)

Constructs an instance based on length units.

Implementation

AreaUnits.lengthSquared(LengthUnits lu)
    : super.misc(lu.valueSI * lu.valueSI) {
  name = 'square ${lu.name}';
  singular = 'square ${lu.singular}';
  convToMKS = lu.valueSI * lu.valueSI;
  abbrev1 = lu.abbrev1 != null && lu.abbrev1 != null
      ? '${lu.abbrev1}\u{00b2}'
      : null;
  abbrev2 = lu.abbrev2 != null && lu.abbrev2 != null
      ? '${lu.abbrev2}\u{00b2}'
      : null;
  metricBase = false;
  offset = 0.0;
}