HcUpgradeAlert constructor
HcUpgradeAlert({
- Key? key,
- HcUpgradeNewVersion? hcUpgrade,
- bool canDismissDialog = false,
- HcUpgradeDialogStyle dialogStyle = HcUpgradeDialogStyle.material,
- BoolCallback? onIgnore,
- BoolCallback? onLater,
- BoolCallback? onUpdate,
- BoolCallback? shouldPopScope,
- bool showIgnore = true,
- double buttonSize = 30,
- double buttonFontSize = 15,
- Color primaryColor = Colors.green,
- Color ignoreColor = Colors.orange,
- Color laterColor = Colors.indigo,
- Color buttonBorderColor = Colors.indigo,
- bool showLater = true,
- bool showReleaseNotes = true,
- TextStyle? cupertinoButtonTextStyle,
- GlobalKey<
State< ? dialogKey,StatefulWidget> > - 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;