VersionCheck class
Constructors
- VersionCheck({String? packageName, String? packageVersion, GetStoreVersionAndUrl? getStoreVersionAndUrl, ShowUpdateDialog? showUpdateDialog, String? country})
- VersionCheck constructor
Properties
- country ↔ String?
-
getter/setter pair
- getStoreVersionAndUrl ↔ GetStoreVersionAndUrl?
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasUpdate → bool
-
check if update is available
no setter
- packageName ↔ String?
-
getter/setter pair
- packageVersion ↔ String?
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- showUpdateDialog ↔ ShowUpdateDialog?
-
getter/setter pair
- storeUrl ↔ String?
-
getter/setter pair
- storeVersion ↔ String?
-
getter/setter pair
Methods
-
checkVersion(
BuildContext context) → Future< void> - check version from iOS/Android/Mac store and provide update dialog if update is available.
-
launchStore(
) → Future< void> - launch store for update
-
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
-
shouldUpdate(
String? packageVersion, String? storeVersion) → bool - compare packageVersion and storeVersion and return true if update is needed.