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.

FileSize #

Get human readable file sizes in an easy way

Examples #

  • Direct Method Call
Method Result
FileSize.getSize(1000) "1 KB"
FileSize.getSize(1048576) "1 MB"
FileSize.getSize(1073741824) "1 GB"
FileSize.getSize(1099511627776) "1 TB"
  • Method call with precision [Optional]
Method Result
FileSize.getSize(664365320, 3) "633.588 MB"
FileSize.getSize(4324324232343, 4) "3.9321 TB"
27
likes
0
pub points
91%
popularity

Publisher

verified publisheranmolsethi.dev

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