shadow method
Implementation
Widget shadow({
Color? color,
double? blurRadius,
double? spreadRadius,
Offset? offset,
}) =>
DecoratedBox(
decoration: BoxDecoration(
boxShadow: [
BoxShadow(
color: color ?? Colors.black,
blurRadius: blurRadius ?? 10,
spreadRadius: spreadRadius ?? 0,
offset: offset ?? Offset(0, 0),
),
],
),
child: this,
);