AlertStyle.tonal constructor
const
AlertStyle.tonal({
- Color? color,
- SheetSeverity? severity,
- EdgeInsetsGeometry? margin,
- EdgeInsetsGeometry? padding,
- Clip? clipBehavior,
- Color? shadowColor,
- Color? surfaceTint,
- double? elevation,
- TextStyle? foregroundStyle,
- double? foregroundOpacity,
- int? foregroundAlpha,
- double? foregroundSpacing,
- bool? foregroundLoosen,
- bool? foregroundExpanded,
- CrossAxisAlignment? foregroundAlign,
- MainAxisAlignment? foregroundJustify,
- double? backgroundOpacity,
- int? backgroundAlpha,
- Color? borderColor,
- double? borderOpacity,
- int? borderAlpha,
- double? borderWidth,
- BorderRadius? borderRadius,
- BorderStyle? borderStyle = BorderStyle.none,
- Color? iconColor,
- double? iconOpacity,
- double? iconSize,
Create AlertStyle with default value for toned style.
Implementation
const AlertStyle.tonal({
Color? color,
super.severity,
super.margin,
super.padding,
super.clipBehavior,
super.shadowColor,
super.surfaceTint,
super.elevation,
super.foregroundStyle,
super.foregroundOpacity,
super.foregroundAlpha,
super.foregroundSpacing,
super.foregroundLoosen,
super.foregroundExpanded,
super.foregroundAlign,
super.foregroundJustify,
super.backgroundOpacity,
super.backgroundAlpha,
super.borderColor,
super.borderOpacity,
super.borderAlpha,
super.borderWidth,
super.borderRadius,
super.borderStyle = BorderStyle.none,
super.iconColor,
super.iconOpacity,
super.iconSize,
}) : super(
width: double.infinity,
variant: AlertVariant.tonal,
backgroundColor: color,
foregroundColor: color,
);