shadow method
Applies a decoration to the widget with a BoxShadow.
Implementation
Widget shadow(
Color color,
double radius, {
required double blur,
double x = 0.0,
double y = 0.0,
}) {
return DecoratedBox(
decoration: BoxDecoration(
boxShadow: <BoxShadow>[
BoxShadow(
blurRadius: blur,
spreadRadius: radius,
color: color,
offset: Offset(x, y),
),
],
),
child: this,
);
}