HcUpgradeAlert constructor

HcUpgradeAlert({
  1. Key? key,
  2. HcUpgradeNewVersion? hcUpgrade,
  3. bool canDismissDialog = false,
  4. HcUpgradeDialogStyle dialogStyle = HcUpgradeDialogStyle.material,
  5. BoolCallback? onIgnore,
  6. BoolCallback? onLater,
  7. BoolCallback? onUpdate,
  8. BoolCallback? shouldPopScope,
  9. bool showIgnore = true,
  10. double buttonSize = 30,
  11. double buttonFontSize = 15,
  12. Color primaryColor = Colors.green,
  13. Color ignoreColor = Colors.orange,
  14. Color laterColor = Colors.indigo,
  15. Color buttonBorderColor = Colors.indigo,
  16. bool showLater = true,
  17. bool showReleaseNotes = true,
  18. TextStyle? cupertinoButtonTextStyle,
  19. GlobalKey<State<StatefulWidget>>? dialogKey,
  20. GlobalKey<NavigatorState>? navigatorKey,
  21. Widget? child,
})

Creates a new HcUpgradeAlert.

Implementation

HcUpgradeAlert({
  super.key,
  HcUpgradeNewVersion? hcUpgrade,
  this.canDismissDialog = false,
  this.dialogStyle = HcUpgradeDialogStyle.material,
  this.onIgnore,
  this.onLater,
  this.onUpdate,
  this.shouldPopScope,
  this.showIgnore = true,
  this.buttonSize = 30,
  this.buttonFontSize = 15,
  this.primaryColor = Colors.green,
  this.ignoreColor = Colors.orange,
  this.laterColor = Colors.indigo,
  this.buttonBorderColor = Colors.indigo,
  this.showLater = true,
  this.showReleaseNotes = true,
  this.cupertinoButtonTextStyle,
  this.dialogKey,
  this.navigatorKey,
  this.child,
}) : upgrade = hcUpgrade ?? HcUpgradeNewVersion.sharedInstance;