TorqueUnits constructor

TorqueUnits(
  1. String name,
  2. String? abbrev1,
  3. String? abbrev2,
  4. String singular,
  5. dynamic conv, [
  6. bool metricBase = false,
  7. num offset = 0.0,
])

Constructs an instance.

Implementation

TorqueUnits(String name, String? abbrev1, String? abbrev2, String singular,
    dynamic conv,
    [bool metricBase = false, num offset = 0.0])
    : super.misc(conv) {
  this.name = name;
  this.singular = singular;
  convToMKS = objToNumber(conv);
  this.abbrev1 = abbrev1;
  this.abbrev2 = abbrev2;
  this.metricBase = metricBase;
  this.offset = offset.toDouble();
}