Force constructor
Force({})
Class for force conversions, e.g. if you want to convert 1 newton in pound force:
var force = Force(removeTrailingZeros: false);
force.Convert(Unit(FORCE.newton, value: 1));
print(FORCE.pound_force);
Implementation
Force(
{super.significantFigures,
super.removeTrailingZeros,
super.useScientificNotation,
name})
: super(
name: name ?? PROPERTY.force,
mapSymbols: {
FORCE.newton: 'N',
FORCE.dyne: 'dyn',
FORCE.poundForce: 'lbf',
FORCE.kilogramForce: 'kgf',
FORCE.poundal: 'pdl',
},
conversionTree: ConversionNode(name: FORCE.newton, children: [
ConversionNode(
coefficientProduct: 1e-5,
name: FORCE.dyne,
),
ConversionNode(
coefficientProduct: 4.4482216152605,
name: FORCE.poundForce,
),
ConversionNode(
coefficientProduct: 9.80665,
name: FORCE.kilogramForce,
),
ConversionNode(
coefficientProduct: 0.138254954376,
name: FORCE.poundal,
),
]));