createShadow function

List<BoxShadow> createShadow({
  1. Color color = Colors.black54,
  2. Offset offset = const Offset(0.0, 4.0),
  3. double blurRadius = 10.0,
  4. double spreadRadius = 0.0,
})

Implementation

List<BoxShadow> createShadow({
  Color color = Colors.black54,
  Offset offset = const Offset(0.0, 4.0),
  double blurRadius = 10.0,
  double spreadRadius = 0.0
}) {
  return [
    BoxShadow(
        color: color,
        offset: offset,
        blurRadius: blurRadius,
        spreadRadius: spreadRadius
    ),
  ];
}