byte_size 1.3.4 copy "byte_size: ^1.3.4" to clipboard
byte_size: ^1.3.4 copied to clipboard

outdated

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);
  print(size.ToString('MB', 3, Locale.fr_CA)); // 9,766 MB
}
4
likes
0
pub points
56%
popularity

Publisher

unverified uploader

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.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

intl, locales

More

Packages that depend on byte_size