copyWith method
- Color? backgroundColor,
- double? elevation,
- Color? shadowColor,
- Color? surfaceTintColor,
- ShapeBorder? shape,
- AlignmentGeometry? alignment,
- Color? iconColor,
- TextStyle? titleTextStyle,
- TextStyle? contentTextStyle,
- EdgeInsetsGeometry? actionsPadding,
- Color? barrierColor,
- EdgeInsets? insetPadding,
- Clip? clipBehavior,
Creates a copy of this object but with the given fields replaced with the new values.
This method is obsolete and will be deprecated in a future release: please use the DialogThemeData.copyWith instead.
Implementation
DialogTheme copyWith({
Color? backgroundColor,
double? elevation,
Color? shadowColor,
Color? surfaceTintColor,
ShapeBorder? shape,
AlignmentGeometry? alignment,
Color? iconColor,
TextStyle? titleTextStyle,
TextStyle? contentTextStyle,
EdgeInsetsGeometry? actionsPadding,
Color? barrierColor,
EdgeInsets? insetPadding,
Clip? clipBehavior,
}) {
return DialogTheme(
backgroundColor: backgroundColor ?? this.backgroundColor,
elevation: elevation ?? this.elevation,
shadowColor: shadowColor ?? this.shadowColor,
surfaceTintColor: surfaceTintColor ?? this.surfaceTintColor,
shape: shape ?? this.shape,
alignment: alignment ?? this.alignment,
iconColor: iconColor ?? this.iconColor,
titleTextStyle: titleTextStyle ?? this.titleTextStyle,
contentTextStyle: contentTextStyle ?? this.contentTextStyle,
actionsPadding: actionsPadding ?? this.actionsPadding,
barrierColor: barrierColor ?? this.barrierColor,
insetPadding: insetPadding ?? this.insetPadding,
clipBehavior: clipBehavior ?? this.clipBehavior,
);
}