pretty_bytes library

Convert bytes to a human readable string: 1337 → 1.34 KB.

Constants

BIBIT_UNITS → const List<String>
BIBYTE_UNITS → const List<String>
BIT_UNITS → const List<String>
BYTE_UNITS → const List<String>

Properties

removeTrailingZerosRegex RegExp
getter/setter pair

Functions

log10(num x) double
prettyBytes(double number, {bool? signed, String? locale, bool? bits, bool? binary, int? minimumFractionDigits, int? maximumFractionDigits}) String
toLocaleString(double number, String? locale, int? minimumFractionDigits, int? maximumFractionDigits) String