copyWithThemeIfNull method

NeumorphicStyle copyWithThemeIfNull(
  1. NeumorphicThemeData theme
)

Implementation

NeumorphicStyle copyWithThemeIfNull(NeumorphicThemeData theme) {
  return NeumorphicStyle._withTheme(
      theme: theme,
      color: this.color ?? theme.baseColor,
      boxShape: this.boxShape ?? theme.boxShape,
      shape: this.shape,
      border: this.border.copyWithThemeIfNull(
          color: theme.borderColor, width: theme.borderWidth),
      shadowDarkColor: this.shadowDarkColor ?? theme.shadowDarkColor,
      shadowLightColor: this.shadowLightColor ?? theme.shadowLightColor,
      shadowDarkColorEmboss:
          this.shadowDarkColorEmboss ?? theme.shadowDarkColorEmboss,
      shadowLightColorEmboss:
          this.shadowLightColorEmboss ?? theme.shadowLightColorEmboss,
      depth: this.depth ?? theme.depth,
      intensity: this.intensity ?? theme.intensity,
      disableDepth: this.disableDepth ?? theme.disableDepth,
      surfaceIntensity: this.surfaceIntensity,
      oppositeShadowLightSource: this.oppositeShadowLightSource,
      lightSource: this.lightSource);
}