ConversionNode<T> constructor
ConversionNode<T> ({
- required T name,
- List<
ConversionNode< children = const [],T> > - double coefficientProduct = 1.0,
- double coefficientSum = 0.0,
- double? value,
- String? stringValue,
- ConversionType conversionType = ConversionType.linearConversion,
Implementation
ConversionNode({
required this.name,
this.children = const [],
this.coefficientProduct = 1.0,
this.coefficientSum = 0.0,
this.value,
this.stringValue,
this.conversionType = ConversionType.linearConversion,
}) {
for (var child in children) {
child.parent = this;
}
}