copyWith method
Copy with selective overrides.
Implementation
DialogThemeData copyWith({
Color? background,
Color? foreground,
Color? overlayColor,
double? overlayOpacity,
Color? buttonBackground,
Color? buttonSelectedBackground,
Color? buttonForeground,
Color? buttonSelectedForeground,
Color? hintForeground,
Color? footerBackground,
int? width,
int? maxHeight,
}) {
return DialogThemeData(
background: background ?? this.background,
foreground: foreground ?? this.foreground,
overlayColor: overlayColor ?? this.overlayColor,
overlayOpacity: overlayOpacity ?? this.overlayOpacity,
buttonBackground: buttonBackground ?? this.buttonBackground,
buttonSelectedBackground:
buttonSelectedBackground ?? this.buttonSelectedBackground,
buttonForeground: buttonForeground ?? this.buttonForeground,
buttonSelectedForeground:
buttonSelectedForeground ?? this.buttonSelectedForeground,
hintForeground: hintForeground ?? this.hintForeground,
footerBackground: footerBackground ?? this.footerBackground,
width: width ?? this.width,
maxHeight: maxHeight ?? this.maxHeight,
);
}