Rect constructor

Rect({
  1. num? x,
  2. num? y,
  3. num? width,
  4. num? height,
})

Implementation

factory Rect({
  _i2.num? x,
  _i2.num? y,
  _i2.num? width,
  _i2.num? height,
}) =>
    Rect._(
      x: x,
      y: y,
      width: width,
      height: height,
    );