FileTool class
Constructors
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
-
cache(
String filePath) → Future< String?> -
calcFileSha256(
String filePath) → Future< String> -
clearDir(
[String path = '']) → Future< bool> -
formatDirSize(
{String path = '', bool lowerCase = false, int fixed = 1}) → Future< String> -
formatSize(
int size, {bool lowerCase = true, int fixed = 1}) → String -
getCachePath(
[String cacheFilePath = 'cache_file']) → Future< String?> -
getDirPath(
String path, {FileDir root = FileDir.temporary}) → Future< String?> -
getDirSize(
String path, [int size = 0]) → Future< int>