AlertStyle.filled constructor

const AlertStyle.filled({
  1. Color? color,
  2. SheetSeverity? severity,
  3. EdgeInsetsGeometry? margin,
  4. EdgeInsetsGeometry? padding,
  5. Clip? clipBehavior,
  6. Color? shadowColor,
  7. Color? surfaceTint,
  8. double? elevation,
  9. TextStyle? foregroundStyle,
  10. Color? foregroundColor,
  11. double? foregroundOpacity,
  12. int? foregroundAlpha,
  13. double? foregroundSpacing,
  14. bool? foregroundLoosen,
  15. bool? foregroundExpanded,
  16. CrossAxisAlignment? foregroundAlign,
  17. MainAxisAlignment? foregroundJustify,
  18. double? backgroundOpacity,
  19. int? backgroundAlpha,
  20. double? borderOpacity,
  21. int? borderAlpha,
  22. double? borderWidth,
  23. BorderRadius? borderRadius,
  24. BorderStyle? borderStyle = BorderStyle.none,
  25. Color? iconColor,
  26. double? iconOpacity,
  27. double? iconSize,
})

Create AlertStyle with default value for filled style.

Implementation

const AlertStyle.filled({
  Color? color,
  super.severity,
  super.margin,
  super.padding,
  super.clipBehavior,
  super.shadowColor,
  super.surfaceTint,
  super.elevation,
  super.foregroundStyle,
  super.foregroundColor,
  super.foregroundOpacity,
  super.foregroundAlpha,
  super.foregroundSpacing,
  super.foregroundLoosen,
  super.foregroundExpanded,
  super.foregroundAlign,
  super.foregroundJustify,
  super.backgroundOpacity,
  super.backgroundAlpha,
  super.borderOpacity,
  super.borderAlpha,
  super.borderWidth,
  super.borderRadius,
  super.borderStyle = BorderStyle.none,
  super.iconColor,
  super.iconOpacity,
  super.iconSize,
}) : super(
        width: double.infinity,
        variant: AlertVariant.filled,
        backgroundColor: color,
        borderColor: color,
      );