Torque constructor
Torque({})
Class for torque conversions, e.g. if you want to convert 1 square meters in acres:
var torque = Torque(removeTrailingZeros: false);
torque.convert(Unit(TORQUE.square_meters, value: 1));
print(TORQUE.acres);
Implementation
Torque(
{super.significantFigures,
super.removeTrailingZeros,
super.useScientificNotation,
name})
: super(
name: name ?? PROPERTY.torque,
mapSymbols: {
TORQUE.newtonMeter: 'N·m',
TORQUE.dyneMeter: 'dyn·m',
TORQUE.poundForceFeet: 'lbf·ft',
TORQUE.kilogramForceMeter: 'kgf·m',
TORQUE.poundalMeter: 'pdl·m',
},
conversionTree: ConversionNode(name: TORQUE.newtonMeter, children: [
ConversionNode(
coefficientProduct: 1e-5,
name: TORQUE.dyneMeter,
),
ConversionNode(
coefficientProduct: 1.35581794902490555,
name: TORQUE.poundForceFeet,
),
ConversionNode(
coefficientProduct: 9.807,
name: TORQUE.kilogramForceMeter,
),
ConversionNode(
coefficientProduct: 0.138254954376,
name: TORQUE.poundalMeter,
),
]),
);