withShadow method
Adds a shadow to the widget
Implementation
Widget withShadow({
Color color = Colors.black,
double blurRadius = 5.0,
Offset offset = const Offset(0, 2),
double spreadRadius = 0.0,
}) {
return Material(
elevation: blurRadius,
shadowColor: color,
child: this,
);
}