Rectangle

The location of the target area relative to the screen or window. If you do not set this parameter, the SDK selects the whole screen or window.

class Rectangle {
  const Rectangle({this.x, this.y, this.width, this.height});

  @JsonKey(name: 'x')
  final int? x;
  @JsonKey(name: 'y')
  final int? y;
  @JsonKey(name: 'width')
  final int? width;
  @JsonKey(name: 'height')
  final int? height;
  factory Rectangle.fromJson(Map<String, dynamic> json) =>
      _$RectangleFromJson(json);
  Map<String, dynamic> toJson() => _$RectangleToJson(this);
}

Attributes

x
The horizontal offset from the top-left corner.
y
The vertical offset from the top-left corner.
width
The width of the target area.
height
The height of the target area.