copyWith method

DialogTheme copyWith ({Color backgroundColor, double elevation, ShapeBorder shape, TextStyle titleTextStyle, TextStyle contentTextStyle })

Creates a copy of this object but with the given fields replaced with the new values.

Implementation

DialogTheme copyWith({
  Color backgroundColor,
  double elevation,
  ShapeBorder shape,
  TextStyle titleTextStyle,
  TextStyle contentTextStyle,
}) {
  return DialogTheme(
    backgroundColor: backgroundColor ?? this.backgroundColor,
    elevation: elevation ?? this.elevation,
    shape: shape ?? this.shape,
    titleTextStyle: titleTextStyle ?? this.titleTextStyle,
    contentTextStyle: contentTextStyle ?? this.contentTextStyle,
  );
}