Decoration.box constructor Null safety

const Decoration.box(
  1. {Color? color,
  2. DecorationImage? image,
  3. ShapeBorder? border,
  4. BorderRadius? borderRadius,
  5. List<BoxShadow>? boxShadow,
  6. Gradient? gradient,
  7. BlendMode? backgroundBlendMode,
  8. @Default(BoxShape.rectangle) BoxShape shape}
)

Implementation

const factory Decoration.box({
  Color? color,
  DecorationImage? image,
  ShapeBorder? border,
  BorderRadius? borderRadius,
  List<BoxShadow>? boxShadow,
  Gradient? gradient,
  BlendMode? backgroundBlendMode,
  @Default(BoxShape.rectangle) BoxShape shape,
}) = BoxDecoration;