ConversionNode<T> constructor

ConversionNode<T>({
  1. required T name,
  2. List<ConversionNode<T>> children = const [],
  3. double coefficientProduct = 1.0,
  4. double coefficientSum = 0.0,
  5. double? value,
  6. String? stringValue,
  7. 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;
  }
}