Upgrader constructor
Upgrader({
- AppcastConfiguration? appcastConfig,
- Appcast? appcast,
- UpgraderMessages? messages,
- bool debugDisplayAlways = false,
- bool debugDisplayOnce = false,
- bool debugLogging = false,
- Duration durationUntilAlertAgain = const Duration(days: 3),
- BoolCallback? onIgnore,
- BoolCallback? onLater,
- BoolCallback? onUpdate,
- BoolCallback? shouldPopScope,
- WillDisplayUpgradeCallback? willDisplayUpgrade,
- Client? client,
- bool showIgnore = true,
- bool showLater = true,
- bool showReleaseNotes = true,
- bool canDismissDialog = false,
- String? countryCode,
- String? languageCode,
- String? minAppVersion,
- UpgradeDialogStyle dialogStyle = UpgradeDialogStyle.material,
- TextStyle? cupertinoButtonTextStyle,
- TargetPlatform? platform,
Implementation
Upgrader({
this.appcastConfig,
this.appcast,
UpgraderMessages? messages,
this.debugDisplayAlways = false,
this.debugDisplayOnce = false,
this.debugLogging = false,
this.durationUntilAlertAgain = const Duration(days: 3),
this.onIgnore,
this.onLater,
this.onUpdate,
this.shouldPopScope,
this.willDisplayUpgrade,
http.Client? client,
this.showIgnore = true,
this.showLater = true,
this.showReleaseNotes = true,
this.canDismissDialog = false,
this.countryCode,
this.languageCode,
this.minAppVersion,
this.dialogStyle = UpgradeDialogStyle.material,
this.cupertinoButtonTextStyle,
TargetPlatform? platform,
}) : client = client ?? http.Client(),
messages = messages ?? UpgraderMessages(),
platform = platform ?? defaultTargetPlatform {
if (debugLogging) print("upgrader: instantiated.");
}