copyWith method
ClayThemeData
copyWith(
{ - double? height,
- double? width,
- Color? color,
- Color? parentColor,
- Color? surfaceColor,
- double? borderRadius,
- BorderRadius? customBorderRadius,
- int? depth,
- double? spread,
- bool? emboss,
- 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,
);
}