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