Siren class Null safety

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.
read-onlyinherited
localVersion Future<Version>
This method will get the store version of your app.
read-only
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
storeVersion Future<Version>
This method will get the local version downloaded of your app.
read-only

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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