HcUpgradeNewVersion constructor
HcUpgradeNewVersion({
- HcAppCastConfiguration? appCastConfig,
- HcAppCast? appcast,
- HcUpgradeMessages? messages,
- bool debugDisplayAlways = false,
- bool debugDisplayOnce = false,
- bool debugLogging = false,
- Duration durationUntilAlertAgain = const Duration(days: 3),
- WillDisplayUpgradeCallback? willDisplayUpgrade,
- Client? client,
- String? countryCode,
- String? languageCode,
- String? minAppVersion,
- HcUpgradeOS? upgradeOS,
Implementation
HcUpgradeNewVersion({
this.appCastConfig,
this.appcast,
this.messages,
this.debugDisplayAlways = false,
this.debugDisplayOnce = false,
this.debugLogging = false,
this.durationUntilAlertAgain = const Duration(days: 3),
this.willDisplayUpgrade,
http.Client? client,
this.countryCode,
this.languageCode,
this.minAppVersion,
HcUpgradeOS? upgradeOS,
}) : client = client ?? http.Client(),
upgradeOS = upgradeOS ?? HcUpgradeOS() {
if (debugLogging){ if (kDebugMode) {
print("hcUpgrade: instantiated.");
}}
}