copyWith method

NeumorphicStyle copyWith({
  1. Color? color,
  2. NeumorphicBorder? border,
  3. NeumorphicBoxShape? 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. 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,
  );
}