shadow method

Widget shadow({
  1. Color color = const Color(0x40000000),
  2. double blurRadius = 8.0,
  3. Offset offset = const Offset(0, 2),
})

Add shadow

Implementation

Widget shadow({
  Color color = const Color(0x40000000),
  double blurRadius = 8.0,
  Offset offset = const Offset(0, 2),
}) =>
    Container(
      decoration: BoxDecoration(
        boxShadow: [
          BoxShadow(
            color: color,
            blurRadius: blurRadius,
            offset: offset,
          ),
        ],
      ),
      child: this,
    );