# Rectangle (/zh-CN/api-reference/rtc/flutter/class-rectangle) > For AI agents: see the complete documentation index at [llms.txt](/llms.txt). ```dart 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 json) => _$RectangleFromJson(json); Map toJson() => _$RectangleToJson(this); } ``` ## 属性 [#属性] 左上角的横向偏移。 左上角的纵向偏移。 目标区域的宽度。 目标区域的高度。