ElegantAlertDialog.info constructor

ElegantAlertDialog.info({
  1. Key? key,
  2. required ElegantBodyWidget alertContent,
  3. required String? confirmButtonText,
  4. Color? confirmButtonColor = Colors.blue,
  5. dynamic onConfirmButtonPressed()?,
  6. AnimationTypes animationType = AnimationTypes.scaleAnimation,
  7. Curve animationCurve = Curves.ease,
  8. Duration animationDuration = const Duration(seconds: 1),
  9. Color backgroundColor = Colors.white,
  10. List<BoxShadow>? dialogShadow,
  11. bool barrierDismissable = true,
  12. double height = 150,
  13. double borderRadius = 10,
  14. double borderSize = 1,
  15. bool withAnimation = true,
})

Implementation

ElegantAlertDialog.info({
  super.key,
  required this.alertContent,
  required this.confirmButtonText,
  this.confirmButtonColor = Colors.blue,
  this.onConfirmButtonPressed,
  this.animationType = AnimationTypes.scaleAnimation,
  this.animationCurve = Curves.ease,
  this.animationDuration = const Duration(
    seconds: 1,
  ),
  this.backgroundColor = Colors.white,
  this.dialogShadow,
  this.barrierDismissable = true,
  this.height = 150,
  this.borderRadius = 10,
  this.borderSize = 1,
  this.withAnimation = true,
}) {
  elegantAlertType = ElegantAlertInfoType(
    alertContent,
    borderRadius,
    confirmButtonColor: confirmButtonColor!,
    confirmButtonPressed: onConfirmButtonPressed,
    confirmButtonText: confirmButtonText!,
  );
}