Shadow3DDecorator constructor

Shadow3DDecorator({
  1. Vector2? base,
  2. double? ascent,
  3. double? angle,
  4. double? xShift,
  5. double? yScale,
  6. double? blur,
  7. double? opacity,
})

Implementation

Shadow3DDecorator({
  Vector2? base,
  double? ascent,
  double? angle,
  double? xShift,
  double? yScale,
  double? blur,
  double? opacity,
})  : _base = base?.clone() ?? Vector2.zero(),
      _ascent = ascent ?? 0,
      _angle = angle ?? -1.4,
      _shift = xShift ?? 100.0,
      _scale = yScale ?? 1.0,
      _blur = blur ?? 0,
      _opacity = opacity ?? 0.6;