copyWith method

ShadAlertTheme copyWith({
  1. ShadDecoration? decoration,
  2. EdgeInsetsGeometry? iconPadding,
  3. Color? iconColor,
  4. TextStyle? titleStyle,
  5. TextStyle? descriptionStyle,
  6. MainAxisAlignment? mainAxisAlignment,
  7. CrossAxisAlignment? crossAxisAlignment,
  8. 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,
  );
}