CLAlert.border constructor

CLAlert.border(
  1. String alertTitle,
  2. String alertText, {
  3. Key? key,
  4. IconData? icon,
  5. IconAlignment iconAlignment = IconAlignment.start,
  6. Color? backgroundColor,
  7. void onClose()?,
})

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,
);