CLAlert.border constructor
CLAlert.border(})
Implementation
CLAlert.border(
String alertTitle,
String alertText, {
Key? key,
IconData? icon,
IconAlignment iconAlignment = IconAlignment.start,
Color? backgroundColor,
void Function()? onClose,
}) : this._(
key: key,
alertTitle,
alertText,
icon: icon,
iconAlignment: iconAlignment,
decoration: BoxDecoration(
color: backgroundColor?.withOpacity(0.15),
borderRadius: BorderRadius.circular(Sizes.borderRadius),
border: Border(
left: BorderSide(
color: backgroundColor ?? Colors.white,
width: 2.5,
strokeAlign: BorderSide.strokeAlignCenter,
),
),
),
foregroundColor: backgroundColor ?? Colors.white,
onClose: onClose,
);