Unit constructor
The class that defines a unit of measurement object.
Implementation
Unit(this.name,
{double? value,
this.symbol,
String Function(double)? stringValueCallback}) {
this.value = value;
this.stringValueCallback = stringValueCallback ?? (val) => val.toString();
}