rect property

Future<Rectangle<int>> get rect

The location and size of the window.

Implementation

Future<Rectangle<int>> get rect async {
  try {
    return await _client.send(_handler.window.buildRectRequest(),
        _handler.window.parseRectResponse);
  } on UnsupportedError {
    // JsonWire cannot implement this API in one call.
    // Delegate to other methods.
    final location = await this.location;
    final size = await this.size;
    return Rectangle<int>(location.x, location.y, size.width, size.height);
  }
}