Siren class

This class provides access to the current and optionally the new version of your app on both Android and iOS.

Constructors

Siren()

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

getCurrentVersion() Future<Version>
Returns current app version.
getNewVersion({bool throwExceptions = false, String country = 'US'}) Future<Version?>
Returns the new version if it is able to get one
getPackage() Future<String>
Returns current package name.
hasNewVersion() Future<bool>
Returns true if a newer version is available.
mapPolicy<T>({VersionCallback<T>? onXChanged, VersionCallback<T>? onYChanged, VersionCallback<T>? onZChanged, VersionCallback<T>? onBugfixChanged, String country = 'US'}) Future<T?>
Maps each individual update case. This allows for very fine grained control over what should happen depending on what kind of update happens.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
openAppStore({String country = 'US'}) Future<void>
Returns the new version if it is able to get one
toString() String
A string representation of this object.
inherited

Operators

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