NeumorphicStyle constructor

const NeumorphicStyle({
  1. NeumorphicShape shape = _defaultShape,
  2. LightSource lightSource = LightSource.topLeft,
  3. NeumorphicBorder border = const NeumorphicBorder.none(),
  4. Color? color,
  5. NeumorphicBoxShape? boxShape,
  6. Color? shadowLightColor,
  7. Color? shadowDarkColor,
  8. Color? shadowLightColorEmboss,
  9. Color? shadowDarkColorEmboss,
  10. double? depth,
  11. double? intensity,
  12. double surfaceIntensity = 0.25,
  13. bool? disableDepth,
  14. 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;