ShapeDecoration constructor Null safety

const ShapeDecoration(
  1. {Color? color,
  2. DecorationImage? image,
  3. Gradient? gradient,
  4. List<BoxShadow>? shadows,
  5. required ShapeBorder shape}
)

Implementation

const factory ShapeDecoration(
    {final Color? color,
    final DecorationImage? image,
    final Gradient? gradient,
    final List<BoxShadow>? shadows,
    required final ShapeBorder shape}) = _$ShapeDecoration;