Illuminance constructor

Illuminance({
  1. int significantFigures = 10,
  2. bool removeTrailingZeros = true,
  3. bool useScientificNotation = true,
  4. dynamic name,
})

Class for light conversions, e.g. if you want to convert 1 lux in to foot-candle:

var illuminance = Illuminance(removeTrailingZeros: false);
illuminance.convert(Unit(ILLUMINANCE.lux, value: 1));
print(illuminance.footCandle);

Implementation

Illuminance(
    {super.significantFigures,
    super.removeTrailingZeros,
    super.useScientificNotation,
    name})
    : super(
          name: name ?? PROPERTY.illuminance,
          mapSymbols: {
            ILLUMINANCE.lux: 'lx',
            ILLUMINANCE.footCandle: 'fc',
          },
          conversionTree: ConversionNode(name: ILLUMINANCE.lux, children: [
            ConversionNode(
              coefficientProduct: 10.763910416709722,
              name: ILLUMINANCE.footCandle,
            ),
          ]));