upgrader library

Classes

AlertStyleWidget
Appcast
The Appcast class is used to download an Appcast, based on the Sparkle framework by Andy Matuschak. Documentation: https://sparkle-project.org/documentation/publishing/ An Appcast is an RSS feed with one channel that has a collection of items that each describe one app version.
AppcastConfiguration
A class to define the configuration for the appcast. The configuration contains two parts: a URL to the appcast, and a list of supported OS names, such as "android", "fuchsia", "ios", "linux" "macos", "web", "windows".
AppcastConstants
These constants taken from: https://github.com/sparkle-project/Sparkle/blob/master/Sparkle/SUConstants.m
AppcastItem
ITunesSearchAPI
MockUpgraderDevice
MockUpgraderOS
A class to mock UpgraderOS for testing.
PlayStoreSearchAPI
UpgradeAlert
A widget to display the upgrade dialog. Override the createState method to provide a custom class with overridden methods.
UpgradeAlertState
The UpgradeAlert widget state.
UpgradeCard
A widget to display the upgrade card. The only reason this is a StatefulWidget and not a StatelessWidget is that the widget needs to rebulid after one of the buttons have been tapped. Override the createState method to provide a custom class with overridden methods.
UpgradeCardState
The UpgradeCard widget state.
Upgrader
A class to configure the upgrade dialog.
UpgraderDevice
UpgraderMessages
The default localized messages used for display in upgrader. Extend this class to provide custom values and new localizations for languages. An example to replace the Ignore button with a custom value would be:
UpgraderOS
A class that indicates which OS this code is running on.

Enums

UpgradeDialogStyle
There are two different dialog styles: Cupertino and Material
UpgraderMessage
The message identifiers used in upgrader.

Functions

ambiguate<T>(T? value) → T?
This allows a value of type T or T? to be treated as a value of type T?.

Typedefs

BoolCallback = bool Function()
Signature of callbacks that have no arguments and return bool.
UpgraderEvaluateNeed = bool
The type of data in the stream.
VoidBoolCallback = void Function(bool value)
Signature of callbacks that have a bool argument and no return.
WillDisplayUpgradeCallback = void Function({String? appStoreVersion, required bool display, String? installedVersion, String? minAppVersion})
Signature of callback for willDisplayUpgrade. Includes display, minAppVersion, installedVersion, and appStoreVersion.