LocalStorageManager class final
Handles caching and local storage of downloaded Windows Metadata packages.
By default, data is stored in:
- Windows:
%LocalAppData%\winmd
- Linux and macOS:
$HOME/.cache/winmd
Constructors
- LocalStorageManager.new({String? storagePath})
- Creates a new LocalStorageManager instance.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- path → String
-
Absolute path to the storage directory.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
storedPackageDirectories
→ List<
String> -
Lists all locally cached package directories.
no setter
Methods
-
clear(
) → void - Deletes all cached packages.
-
findPackageDirectory(
WindowsMetadataPackage package, String version) → String? -
Locates an existing package directory by
package
andversion
. -
getPackageDirectory(
WindowsMetadataPackage package, String version, Future< Uint8List> downloadFunction(), {Logger? logger}) → Future<String> - Fetches the package directory, downloading and extracting it if necessary.
-
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