NeumorphicStyle constructor
const
NeumorphicStyle({
- NeumorphicShape shape = _defaultShape,
- LightSource lightSource = LightSource.topLeft,
- NeumorphicBorder border = const NeumorphicBorder.none(),
- Color? color,
- NeumorphicBoxShape? boxShape,
- Color? shadowLightColor,
- Color? shadowDarkColor,
- Color? shadowLightColorEmboss,
- Color? shadowDarkColorEmboss,
- double? depth,
- double? intensity,
- double surfaceIntensity = 0.25,
- bool? disableDepth,
- bool oppositeShadowLightSource = false,
Implementation
const NeumorphicStyle({
this.shape = _defaultShape,
this.lightSource = LightSource.topLeft,
this.border = const NeumorphicBorder.none(),
this.color,
this.boxShape, //nullable by default, will use the one defined in theme if not set
this.shadowLightColor,
this.shadowDarkColor,
this.shadowLightColorEmboss,
this.shadowDarkColorEmboss,
double? depth,
double? intensity,
double surfaceIntensity = 0.25,
this.disableDepth,
this.oppositeShadowLightSource = false,
}) : this._depth = depth,
this.theme = null,
this._intensity = intensity,
this._surfaceIntensity = surfaceIntensity;