readable_numbers library

Makes numbers more human-readable by adding SI prefixes and units.

Extensions

ReadableDuration on Duration
Provides a toReadableString extension method on Duration.
ReadableNumber on num
Provides a toReadableString extension method on num.

Functions

readableDuration(Duration duration, {int? precision}) String
Returns a Duration as a human-readable string.
readableNumber(num n, {int precision = 0, String unit = '', bool binary = false}) String
Returns the specified number as a human-readable string.