copyWith method
ShadAlertTheme
copyWith({
- ShadDecoration? decoration,
- EdgeInsetsGeometry? iconPadding,
- Color? iconColor,
- TextStyle? titleStyle,
- TextStyle? descriptionStyle,
- MainAxisAlignment? mainAxisAlignment,
- CrossAxisAlignment? crossAxisAlignment,
- double? iconSize,
inherited
Implementation
ShadAlertTheme copyWith({
ShadDecoration? decoration,
EdgeInsetsGeometry? iconPadding,
Color? iconColor,
TextStyle? titleStyle,
TextStyle? descriptionStyle,
MainAxisAlignment? mainAxisAlignment,
CrossAxisAlignment? crossAxisAlignment,
double? iconSize,
}) {
final _this = (this as ShadAlertTheme);
return ShadAlertTheme(
decoration: decoration ?? _this.decoration,
iconPadding: iconPadding ?? _this.iconPadding,
iconColor: iconColor ?? _this.iconColor,
titleStyle: titleStyle ?? _this.titleStyle,
descriptionStyle: descriptionStyle ?? _this.descriptionStyle,
mainAxisAlignment: mainAxisAlignment ?? _this.mainAxisAlignment,
crossAxisAlignment: crossAxisAlignment ?? _this.crossAxisAlignment,
iconSize: iconSize ?? _this.iconSize,
);
}