withColoredShadow method
Adds a colored shadow to the widget
Implementation
Widget withColoredShadow({
required Color color,
double blurRadius = 10.0,
double spreadRadius = 0.0,
Offset offset = const Offset(0, 3),
}) => Container(
decoration: BoxDecoration(
boxShadow: [
BoxShadow(
color: color.withOpacity(0.5),
blurRadius: blurRadius,
spreadRadius: spreadRadius,
offset: offset,
),
],
),
child: this,
);