conversionTree property
Defines the relation between the units of measurement of this property.
E.g. in the following example we defined: KiloDash = 1000 * Dash
,
DashPlus1 = Dash + 1
and OneOver(DashPlus1) = 1 / (DashPlus1)
:
ConversionNode conversionTree = ConversionNode(
name: 'Dash',
leafNodes: [
ConversionNode(
name: 'KiloDash',
coefficientProduct: 1000,
),
ConversionNode(
name: 'DashPlus1',
coefficientSum: -1,
leafNodes: [
ConversionNode(
name: 'OneOver(DashPlus1)',
conversionType: ConversionType.reciprocalConversion,
),
],
),
],
);
Implementation
ConversionNode<T> conversionTree;