LocalStorage class abstract final

A utility class for managing local storage of this package.

This class is used to store downloaded NuGet packages locally. The packages are stored in the user's local app data directory, under a subdirectory named directoryName.

Constructors

LocalStorage()

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

exists bool
Determines whether the local storage directory at path exists.
no setter
packages List<NuGetPackage>
Returns a list of NuGetPackages in the local storage directory.
no setter
path String
Path to the local storage directory.
final

Static Methods

clear() → void
Deletes the contents of the local storage directory.
getPackage(String packageName, {String? version}) NuGetPackage?
Looks for a package with the given packageName and version.

Constants

directoryName → const String
The name of the local storage directory.