copyWith method

NeumorphismStyle copyWith({
  1. Color? color,
  2. NeumorphismBorder? border,
  3. NeumorphismBoxShape? boxShape,
  4. Color? shadowLightColor,
  5. Color? shadowDarkColor,
  6. Color? shadowLightColorEmboss,
  7. Color? shadowDarkColorEmboss,
  8. double? depth,
  9. double? intensity,
  10. double? surfaceIntensity,
  11. LightSource? lightSource,
  12. bool? disableDepth,
  13. double? borderRadius,
  14. bool? oppositeShadowLightSource,
  15. NeumorphismShape? shape,
})

Implementation

NeumorphismStyle copyWith({
  Color? color,
  NeumorphismBorder? border,
  NeumorphismBoxShape? boxShape,
  Color? shadowLightColor,
  Color? shadowDarkColor,
  Color? shadowLightColorEmboss,
  Color? shadowDarkColorEmboss,
  double? depth,
  double? intensity,
  double? surfaceIntensity,
  LightSource? lightSource,
  bool? disableDepth,
  double? borderRadius,
  bool? oppositeShadowLightSource,
  NeumorphismShape? shape,
}) {
  return NeumorphismStyle._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: 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,
  );
}