copyWith method
NeumorphicStyle
copyWith({
- Color? color,
- NeumorphicBorder? border,
- NeumorphicBoxShape? boxShape,
- Color? shadowLightColor,
- Color? shadowDarkColor,
- Color? shadowLightColorEmboss,
- Color? shadowDarkColorEmboss,
- double? depth,
- double? intensity,
- double? surfaceIntensity,
- LightSource? lightSource,
- bool? disableDepth,
- double? borderRadius,
- bool? oppositeShadowLightSource,
- NeumorphicShape? shape,
Implementation
NeumorphicStyle copyWith({
Color? color,
NeumorphicBorder? border,
NeumorphicBoxShape? boxShape,
Color? shadowLightColor,
Color? shadowDarkColor,
Color? shadowLightColorEmboss,
Color? shadowDarkColorEmboss,
double? depth,
double? intensity,
double? surfaceIntensity,
LightSource? lightSource,
bool? disableDepth,
double? borderRadius,
bool? oppositeShadowLightSource,
NeumorphicShape? shape,
}) {
return NeumorphicStyle._withTheme(
color: color ?? this.color,
border: border ?? this.border,
boxShape: boxShape ?? this.boxShape,
shadowDarkColor: shadowDarkColor ?? this.shadowDarkColor,
shadowLightColor: shadowLightColor ?? this.shadowLightColor,
shadowDarkColorEmboss:
shadowDarkColorEmboss ?? this.shadowDarkColorEmboss,
shadowLightColorEmboss:
shadowLightColorEmboss ?? this.shadowLightColorEmboss,
depth: depth ?? this.depth,
theme: this.theme,
intensity: intensity ?? this.intensity,
surfaceIntensity: surfaceIntensity ?? this.surfaceIntensity,
disableDepth: disableDepth ?? this.disableDepth,
lightSource: lightSource ?? this.lightSource,
oppositeShadowLightSource:
oppositeShadowLightSource ?? this.oppositeShadowLightSource,
shape: shape ?? this.shape,
);
}