JJDialogAlert constructor

const JJDialogAlert({
  1. Key? key,
  2. Widget? title,
  3. String? titleStr,
  4. Widget? content,
  5. String? contentStr,
  6. Widget? cancel,
  7. String? cancelStr,
  8. Widget? confirm,
  9. String? confirmStr,
  10. TextStyle? titleStyle,
  11. TextStyle? contentStyle,
  12. TextStyle? cancelStyle,
  13. TextStyle? confirmStyle,
  14. EdgeInsetsGeometry contentPadding = const EdgeInsets.all(20),
  15. double spaceBetween = 20,
  16. double actionHeight = 49,
  17. dynamic cancelTap()?,
  18. dynamic confirmTap()?,
  19. bool canDismiss = true,
})

Implementation

const JJDialogAlert({
  Key? key,
  this.title,
  this.titleStr,
  this.content,
  this.contentStr,
  this.cancel,
  this.cancelStr,
  this.confirm,
  this.confirmStr,
  this.titleStyle,
  this.contentStyle,
  this.cancelStyle,
  this.confirmStyle,

  this.contentPadding = const EdgeInsets.all(20),
  this.spaceBetween = 20,
  this.actionHeight = 49,

  this.cancelTap,
  this.confirmTap,
  this.canDismiss = true,

}) : assert(cancel != null || confirm != null || cancelStr != null || confirmStr != null,
       'cancel and confirm can not both be null',
     ),
     super(key: key);