copyWith method

ClayThemeData copyWith({
  1. double? height,
  2. double? width,
  3. Color? color,
  4. Color? parentColor,
  5. Color? surfaceColor,
  6. double? borderRadius,
  7. BorderRadius? customBorderRadius,
  8. int? depth,
  9. double? spread,
  10. bool? emboss,
  11. ClayTextTheme? textTheme,
})

Implementation

ClayThemeData copyWith({
  double? height,
  double? width,
  Color? color,
  Color? parentColor,
  Color? surfaceColor,
  double? borderRadius,
  BorderRadius? customBorderRadius,
  int? depth,
  double? spread,
  bool? emboss,
  ClayTextTheme? textTheme,
}) {
  return ClayThemeData(
    height: height ?? this.height,
    width: width ?? this.width,
    color: color ?? this.color,
    parentColor: parentColor ?? this.parentColor,
    surfaceColor: surfaceColor ?? this.surfaceColor,
    borderRadius: borderRadius ?? this.borderRadius,
    customBorderRadius: customBorderRadius ?? this.customBorderRadius,
    depth: depth ?? this.depth,
    spread: spread ?? this.spread,
    emboss: emboss ?? this.emboss,
    textTheme: textTheme ?? this.textTheme,
  );
}