UpdateChecker class

Service for checking and managing SmartPub updates

Constructors

UpdateChecker()

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

checkForUpdates({bool useCache = true}) → Future<UpdateInfo>
Check for updates and return update information useCache - if true, uses cached data when available (default: true) Set to false for explicit update commands to always check pub.flutter-io.cn
clearCache() → Future<void>
Clear the update cache
isGloballyInstalled() → Future<bool>
Check if SmartPub is globally installed
runUpdate() → Future<bool>
Run the update command