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