shadow method

Widget shadow({
  1. Color color = Colors.black26,
  2. double blurRadius = 10,
  3. double spreadRadius = 1,
  4. Offset offset = const Offset(0, 4),
  5. BorderRadius? borderRadius,
  6. Color? backgroundColor,
})

Implementation

Widget shadow({
  Color color = Colors.black26,
  double blurRadius = 10,
  double spreadRadius = 1,
  Offset offset = const Offset(0, 4),
  BorderRadius? borderRadius,
  Color? backgroundColor,
}) => Container(
  decoration: BoxDecoration(
    color: backgroundColor,
    borderRadius: borderRadius,
    boxShadow: [
      BoxShadow(
        color: color,
        blurRadius: blurRadius,
        spreadRadius: spreadRadius,
        offset: offset,
      ),
    ],
  ),
  child: this,
);