MemoryProvider class

A utility class for handling file storage operations in the application.

Constructors

MemoryProvider()

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

deleteFileDirectory() → void
Deletes all files within the UpdateCenter directory for Android. This method is useful for cleaning up downloaded files.
deleteFileDirectoryWindows() → void
directoryAndroid() Future<Directory>
Provides the UpdateCenter directory in the application's documents directory for Android. Creates the directory if it doesn't exist.
directoryWindows() Future<Directory>
Provides the UpdateCenter directory in the system's downloads directory for Windows. Creates the directory if it doesn't exist.
getLocalFileAndroid(String url) Future<File>
Retrieves a local file reference for Android, based on a given URL. The file is expected to be in the application's document directory.
getLocalFileWindows(String url) Future<File>
Retrieves a local file reference for Windows, based on a given URL. The file is expected to be in the system's downloads directory.
getVersionInfoAndroid() Future<String?>
getVersionInfoWindows() Future<String?>
saveVersionInfoAndroid(String versionName) Future<void>
saveVersionInfoWindows(String versionName) Future<void>