PubUpdater class
A Dart package which enables checking whether a package is up to date.
Constructors
- PubUpdater([Client? client, String baseUrl = _defaultBaseUrl])
- A Dart package which enables checking whether a package is up to date.
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
-
getLatestVersion(
String packageName) → Future< String> -
Returns the latest published version of
packageName
. -
isUpToDate(
{required String packageName, required String currentVersion}) → Future< bool> -
Checks whether or not
currentVersion
is the latest version for the package associated withpackageName
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
update(
{required String packageName, ProcessManager processManager = const LocalProcessManager(), String? versionConstraint}) → Future< ProcessResult> -
Updates the package associated with
packageName
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited