Bounds constructor

Bounds({
  1. required int left,
  2. required int top,
  3. required int width,
  4. required int height,
})

Implementation

Bounds({
  /// The x-coordinate of the upper-left corner.
  required int left,

  /// The y-coordinate of the upper-left corner.
  required int top,

  /// The width of the display in pixels.
  required int width,

  /// The height of the display in pixels.
  required int height,
}) : _wrapped = $js.Bounds(
        left: left,
        top: top,
        width: width,
        height: height,
      );