HcUpgradeNewVersion constructor

HcUpgradeNewVersion({
  1. HcAppCastConfiguration? appCastConfig,
  2. HcAppCast? appcast,
  3. HcUpgradeMessages? messages,
  4. bool debugDisplayAlways = false,
  5. bool debugDisplayOnce = false,
  6. bool debugLogging = false,
  7. Duration durationUntilAlertAgain = const Duration(days: 3),
  8. WillDisplayUpgradeCallback? willDisplayUpgrade,
  9. Client? client,
  10. String? countryCode,
  11. String? languageCode,
  12. String? minAppVersion,
  13. 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.");
  }}
}