createShadowPaint static method
Creates a paint object with a shadow effect.
color is the color of the shadow.
offset is the offset of the shadow.
blurRadius is the blur radius of the shadow.
Implementation
static Paint createShadowPaint({
required Color color,
required Offset offset,
required double blurRadius,
}) {
return Paint()
..color = color
..maskFilter = MaskFilter.blur(BlurStyle.normal, blurRadius);
}