CLAlert.solid constructor

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

Implementation

CLAlert.solid(
    String alertTitle,
    String alertText, {
      Key? key,
      IconData? icon,
      IconAlignment iconAlignment = IconAlignment.start,
      Color? backgroundColor,
      Color? foregroundColor,
      void Function()? onClose,
    }) : this._(
  key: key,
  alertTitle,
  alertText,
  decoration: BoxDecoration(
    color: backgroundColor,
    borderRadius: BorderRadius.circular(8),
  ),
  foregroundColor: foregroundColor ?? Colors.white,
  onClose: onClose,
);