FlutterReleaseXUpdateCheckService class
Constructors
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
- dio → Dio
-
final
Static Methods
-
checkForUpdates(
{bool forceCheck = false}) → Future< String?> - Check for updates from pub.dev Returns the latest version if available, null otherwise
-
clearCache(
) → Future< void> - Clear the update cache
-
getUpdateMessage(
{bool forceCheck = false}) → Future< String?> - Get update message to display to user
-
isUpdateAvailable(
{bool forceCheck = false}) → Future< bool> - Check if an update is available Returns true if a newer version is available
Constants
- cacheFileName → const String
- cacheValidity → const Duration
- pubDevApiUrl → const String