getBoxShadow static method

List<BoxShadow>? getBoxShadow(
  1. Color color,
  2. double elevation,
  3. Offset offset,
  4. double blurRadiusK,
  5. double spreadRadiusK,
)

Implementation

static List<BoxShadow>? getBoxShadow(
  Color color,
  double elevation,
  Offset offset,
  double blurRadiusK,
  double spreadRadiusK,
) {
  return [
    BoxShadow(
      color: color,
      spreadRadius: spreadRadiusK * elevation,
      blurRadius: blurRadiusK * elevation,
      offset: offset,
    ),
  ];
}