BoxShadow constructor Null safety

const BoxShadow(
  1. {Color color = const Color(_kColorDefault),
  2. Offset offset = Offset.zero,
  3. double blurRadius = 0.0,
  4. double spreadRadius = 0.0,
  5. BlurStyle blurStyle = BlurStyle.normal}
)

Creates a box shadow.

By default, the shadow is solid black with zero offset, zero blurRadius, zero spreadRadius, and BlurStyle.normal.

Implementation

const BoxShadow({
  super.color,
  super.offset,
  super.blurRadius,
  this.spreadRadius = 0.0,
  this.blurStyle = BlurStyle.normal,
});