NumeralSystems constructor

NumeralSystems({
  1. dynamic name,
})

Class for numeralSystems conversions, e.g. if you want to convert 10 (decimal) in binary:

var numeralSystems = NumeralSystems();
numeralSystems.convert(Unit(NUMERAL_SYSTEMS.decimal, stringValue: '10'));
print(NUMERAL_SYSTEMS.binary.stringValue);

Implementation

NumeralSystems({name}) {
  this.name = name ?? PROPERTY.numeralSystems;
  size = NUMERAL_SYSTEMS.values.length;
  mapSymbols.forEach((key, value) => _unitList.add(Unit(key, symbol: value)));
}