toReadableNumber static method
Converts a numeric value to a human-readable number format.
Example:
Readable readableNumber = Number.toReadableNumber(1500000);
print(readableNumber); // Output: 1.5 M
Implementation
static Readable toReadableNumber(
num? value, {
NumberUnits unit = NumberUnits.auto,
}) {
return unit.read(value);
}