shadow method

BoxDecoration shadow({
  1. Color color = Colors.black26,
  2. double blurRadius = 10,
  3. Offset offset = const Offset(0, 4),
  4. double spread = 0,
})

Add box shadow

Implementation

BoxDecoration shadow({
  Color color = Colors.black26,
  double blurRadius = 10,
  Offset offset = const Offset(0, 4),
  double spread = 0,
}) =>
    copyWith(
      boxShadow: [
        ...(boxShadow ?? []),
        BoxShadow(
          color: color,
          blurRadius: blurRadius,
          offset: offset,
          spreadRadius: spread,
        ),
      ],
    );