Shadow.box constructor Null safety

const Shadow.box(
  1. {@Default(Color(0xFF000000)) Color color,
  2. @Default(Offset.zero) Offset offset,
  3. @Default(0.0) double blurRadius,
  4. @Default(0.0) double spreadRadius,
  5. @Default(BlurStyle.normal) BlurStyle blurStyle}
)

Implementation

const factory Shadow.box({
  @Default(Color(0xFF000000)) Color color,
  @Default(Offset.zero) Offset offset,
  @Default(0.0) double blurRadius,
  @Default(0.0) double spreadRadius,
  @Default(BlurStyle.normal) BlurStyle blurStyle,
}) = BoxShadow;