This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// A method returns a human readable string representing a file _size | |
String filesize(dynamic size, [int round = 2]) { | |
/** | |
* [size] can be passed as number or as string | |
* | |
* the optional parameter [round] specifies the number | |
* of digits after comma/point (default is 2) | |
*/ | |
var divider = 1024; | |
int _size; |