Siren class

This class allows you to check the application store for new versions of your app.

Constructors

Siren()

Properties

hashCode int
The hash code for this object.
no setterinherited
localVersion Future<Version>
This method will get the store version of your app.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
storeVersion Future<Version>
This method will get the local version downloaded of your app.
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
promptUpdate(BuildContext context, {String title = 'Update Available', String message = ''' There is an updated version available on the App Store. Would you like to upgrade?''', String buttonUpgradeText = 'Upgrade', String buttonCancelText = 'Cancel', bool forceUpgrade = false}) Future<void>
This method shows an customizable AlertDialog if an update is available.
toString() String
A string representation of this object.
inherited
updateIsAvailable() Future<bool>
This method checks for an update in the application store and returns if there is a newer version than the local one.

Operators

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