Upgrader constructor

Upgrader({
  1. AppcastConfiguration? appcastConfig,
  2. Appcast? appcast,
  3. UpgraderMessages? messages,
  4. bool debugDisplayAlways = false,
  5. bool debugDisplayOnce = false,
  6. bool debugLogging = false,
  7. Duration durationUntilAlertAgain = const Duration(days: 3),
  8. BoolCallback? onIgnore,
  9. BoolCallback? onLater,
  10. BoolCallback? onUpdate,
  11. BoolCallback? shouldPopScope,
  12. WillDisplayUpgradeCallback? willDisplayUpgrade,
  13. Client? client,
  14. bool showIgnore = true,
  15. bool showLater = true,
  16. bool showReleaseNotes = true,
  17. bool canDismissDialog = false,
  18. String? countryCode,
  19. String? languageCode,
  20. String? minAppVersion,
  21. UpgradeDialogStyle dialogStyle = UpgradeDialogStyle.material,
  22. TextStyle? cupertinoButtonTextStyle,
  23. 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.");
}