data_size 0.2.0 copy "data_size: ^0.2.0" to clipboard
data_size: ^0.2.0 copied to clipboard

🔟 Customizable data size (bit & byte) formatting for interfacing with the user

example/main.dart

import 'package:data_size/data_size.dart';

// ignore_for_file: avoid_print

void main() {
  print(12345.formatByteSize()); // "12.35 kB"
  print(12345.formatByteSize(precision: 0)); // "12 kB"
  print(12345.formatByteSize(prefix: Prefix.binary)); // "12.06 KiB"
  print(12345.formatBitSize()); // "12.35 kb"
}
3
likes
150
pub points
59%
popularity

Publisher

verified publisherwanke.dev

🔟 Customizable data size (bit & byte) formatting for interfacing with the user

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

meta

More

Packages that depend on data_size