Rect constructor

Rect({
  1. required int x,
  2. required int y,
  3. required int width,
  4. required int height,
})

Implementation

Rect({
  /// The x coordinate of the rectangle.
  required int x,

  /// The y coordinate of the rectangle.
  required int y,

  /// The width of the rectangle.
  required int width,

  /// The height of the rectangle.
  required int height,
}) : _wrapped = $js.Rect(
        x: x,
        y: y,
        width: width,
        height: height,
      );