RatioProperty<T extends Enum, N, D> constructor

RatioProperty<T extends Enum, N, D>({
  1. required Property numeratorProperty,
  2. required Property denominatorProperty,
  3. required Map<T, String?> mapSymbols,
  4. dynamic name,
  5. int significantFigures = 10,
  6. bool removeTrailingZeros = true,
  7. bool useScientificNotation = true,
})

Implementation

RatioProperty(
    {required this.numeratorProperty,
    required this.denominatorProperty,
    required this.mapSymbols,
    name,
    this.significantFigures = 10,
    this.removeTrailingZeros = true,
    this.useScientificNotation = true}) {
  size = mapSymbols.length;
  this.name = name;
  size = mapSymbols.length;
  for (var unit in mapSymbols.keys) {
    _unitList.add(Unit(unit, symbol: mapSymbols[unit]));
  }
}