BoxDecoration constructor Null safety

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

Implementation

const factory BoxDecoration(
    {final Color? color,
    final DecorationImage? image,
    final ShapeBorder? border,
    final BorderRadius? borderRadius,
    final List<BoxShadow>? boxShadow,
    final Gradient? gradient,
    final BlendMode? backgroundBlendMode,
    final BoxShape shape}) = _$BoxDecoration;