Rectangle constructor Null safety

Rectangle(
  1. int x,
  2. int y,
  3. int width,
  4. int height
)

Constructor.

Implementation

Rectangle(int x, int y, int width, int height)
    : x = x,
      y = y,
      width = width,
      height = height;