FileSize class

Constructors

FileSize()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

getBytes(dynamic data) String
It returns the size of the file in bytes
getExaBytes(dynamic data, {PrecisionValue? value}) String
It returns the size of the file in exa bytes
getGigaBytes(dynamic data, {PrecisionValue? value}) String
It returns the size of the file in giga bytes
getKiloBytes(dynamic data, {PrecisionValue? value}) String
It returns the size of the file in kilo bytes
getMegaBytes(dynamic data, {PrecisionValue? value}) String
It returns the size of the file in mega bytes
getPetaBytes(dynamic data, {PrecisionValue? value}) String
It returns the size of the file in peta bytes
getSize(dynamic size, {PrecisionValue precision = PrecisionValue.Two}) String
size can be passed as number or as string the optional parameter PrecisionValue specifies the number of digits after comma/point (default is PrecisionValue.Two)
getTeraBytes(dynamic data, {PrecisionValue? value}) String
It returns the size of the file in tera bytes
getYottaBytes(dynamic data, {PrecisionValue? value}) String
It returns the size of the file in yotta bytes
getZettaBytes(dynamic data, {PrecisionValue? value}) String
It returns the size of the file in zetta bytes