niche/pad_format_utils library
Functions
-
formatFileSize(
int bytes, {int decimals = 1}) → String -
Formats
bytesas a human-readable size using binary (1024) units up to TB. -
padWithZeros(
int value, int length) → String -
Returns
valueas a string left-padded with zeros to at leastlengthchars.