NewVersion class

Constructors

NewVersion({String? androidId, String? iOSId, String? iOSAppStoreCountry, String? forceAppVersion})

Properties

androidId String?
An optional value that can override the default packageName when attempting to reach the Google Play Store. This is useful if your app has a different package name in the Play Store.
final
forceAppVersion String?
An optional value that will force the plugin to always return forceAppVersion as the value of storeVersion. This can be useful to test the plugin's behavior before publishng a new version.
final
hashCode int
The hash code for this object.
no setterinherited
iOSAppStoreCountry String?
Only affects iOS App Store lookup: The two-letter country code for the store you want to search. Provide a value here if your app is only available outside the US. For example: US. The default is US. See http://en.wikipedia.org/wiki/ ISO_3166-1_alpha-2 for a list of ISO Country Codes.
final
iOSId String?
An optional value that can override the default packageName when attempting to reach the Apple App Store. This is useful if your app has a different package name in the App Store.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getVersionStatus() Future<VersionStatus?>
This checks the version status and returns the information. This is useful if you want to display a custom alert, or use the information in a different way.
launchAppStore(String appStoreLink) Future<void>
Launches the Apple App Store or Google Play Store page for the app.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
showAlertIfNecessary({required BuildContext context}) → dynamic
This checks the version status, then displays a platform-specific alert with buttons to dismiss the update alert, or go to the app store.
showUpdateDialog({required BuildContext context, required VersionStatus versionStatus, String dialogTitle = 'Update Available', String? dialogText, String updateButtonText = 'Update', bool allowDismissal = true, String dismissButtonText = 'Maybe Later', VoidCallback? dismissAction}) → void
Android info is fetched by parsing the html of the app store page. Shows the user a platform-specific alert about the app update. The user can dismiss the alert or proceed to the app store.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited