Decoration.shape constructor Null safety

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

Implementation

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