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.
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
An upgrade controllerthat maintains a state that is used to trigger an alert or other UI to evaluate upgrading criteria.
UpgraderAppcastStore
UpgraderAppStore
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.
UpgraderPlayStore
UpgraderState
The Upgrader state.
UpgraderStore
UpgraderStoreController
A controller that provides the store details for each platform.
UpgraderVersionInfo

Enums

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

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.
VoidBoolCallback = void Function(bool value)
Signature of callbacks that have a bool argument and no return.
WillDisplayUpgradeCallback = void Function({required bool display, String? installedVersion, UpgraderVersionInfo? versionInfo})
Signature of callback for willDisplayUpgrade. Includes display, installedVersion, and versionInfo.