FileExt class

A utility class for handling cache file operations, such as creating cache directories and deleting them.

Constructors

FileExt.new()

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 Properties

cacheRootPath String
Returns the current root path of the cache directory.
no setter

Static Methods

createCachePath([String? cacheDir]) Future<String>
Creates and returns the path to the cache directory.
deleteCacheDirByKey(String key) Future<void>
Deletes a specific cache directory by its key.
deleteDefaultCacheDir() Future<void>
Deletes the default cache directory.