JJDialogAlert constructor
const
JJDialogAlert({
- Key? key,
- Widget? title,
- String? titleStr,
- Widget? content,
- String? contentStr,
- Widget? cancel,
- String? cancelStr,
- Widget? confirm,
- String? confirmStr,
- TextStyle? titleStyle,
- TextStyle? contentStyle,
- TextStyle? cancelStyle,
- TextStyle? confirmStyle,
- EdgeInsetsGeometry contentPadding = const EdgeInsets.all(20),
- double spaceBetween = 20,
- double actionHeight = 49,
- dynamic cancelTap()?,
- dynamic confirmTap()?,
- 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);