shadow method

Widget shadow({
  1. Color? color,
  2. double? blurRadius,
  3. double? spreadRadius,
  4. Offset? offset,
})

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,
    );