paintShadow method

void paintShadow(
  1. Canvas canvas, {
  2. Path? path,
})

Implementation

void paintShadow(Canvas canvas, {Path? path}) {
  for (final shadow in shadows) {
    shadowPaint
      ..color = shadow.color
      ..maskFilter = MaskFilter.blur(BlurStyle.normal, shadow.blurSigma);
    if (path != null) {
      canvas.drawPath(path.shift(shadow.offset), shadowPaint);
    } else {
      canvas.drawPath(outerPath.shift(shadow.offset), shadowPaint);
    }
  }
}