Returns the unit value for the numeric unit.
For none, the unit is 1. For other units, it is 1000 raised to the power of value.
num get unit => this == none ? 1 : pow(1000, value);