shadow method

Widget shadow({
  1. double blur = 5.0,
  2. double spread = 1.0,
  3. Color color = Colors.black26,
})

Apply shadow

Implementation

Widget shadow(
    {double blur = 5.0, double spread = 1.0, Color color = Colors.black26}) {
  return Container(
    decoration: BoxDecoration(
      boxShadow: [
        BoxShadow(
          color: color,
          blurRadius: blur,
          spreadRadius: spread,
        ),
      ],
    ),
    child: this,
  );
}