byte_size 1.2.0 byte_size: ^1.2.0 copied to clipboard
ByteSize is a library that handles how byte sizes are represented and an easy to use interface to convert to other forms of representation also taking locale into consideration.
example/byte_size_example.dart
import 'package:byte_size/byte_size.dart';
import 'package:locales/locales.dart';
void main() {
var size = ByteSize.FromKiloBytes(10000);
size.ToString(symbol: 'MB', precision: 1, locale_LANG: Locale.fr_CA) == '9,8 MB';
}