DynamicViscosityUnits.pressureTime constructor

DynamicViscosityUnits.pressureTime(
  1. PressureUnits pu,
  2. TimeUnits tu
)

Constructs an instance based on pressure and time units.

Implementation

DynamicViscosityUnits.pressureTime(PressureUnits pu, TimeUnits tu)
    : super.misc(pu.valueSI * tu.valueSI) {
  name = '${pu.singular} ${tu.name}';
  singular = '${pu.singular} ${tu.singular}';
  convToMKS = pu.valueSI * tu.valueSI;
  abbrev1 = pu.abbrev1 != null && tu.abbrev1 != null
      ? '${pu.abbrev1} ${tu.abbrev1}'
      : null;
  abbrev2 = pu.abbrev2 != null && tu.abbrev2 != null
      ? '${pu.abbrev2} ${tu.abbrev2}'
      : null;
  metricBase = false;
  offset = 0.0;
}