file_sizes 1.0.1 copy "file_sizes: ^1.0.1" to clipboard
file_sizes: ^1.0.1 copied to clipboard

outdated

Get the Human readable size of the file. It is purely written in dart and support both number and string as parameter and number.

example/main.dart

import 'package:file_sizes/file_sizes.dart';

void main() {
  int baseNumber = 1024;

  /// Get KiloBytes
  String bytes = FileSize.getSize(baseNumber);
  print(bytes);

  /// Get MegaBytes
  String megabytes = FileSize.getSize(baseNumber * baseNumber);
  print(megabytes);
}
27
likes
0
points
1.55k
downloads

Publisher

verified publisheranmolsethi.dev

Weekly Downloads

Get the Human readable size of the file. It is purely written in dart and support both number and string as parameter and number.

Repository (GitHub)
View/report issues

License

unknown (license)

More

Packages that depend on file_sizes