offset property

  1. @override
Rectangle<num> get offset
override

The offset of this element relative to its parent.

Implementation

@override
Rectangle get offset {
  final rect = _retryWhenStale<Map?>(() => _driver.execute('''return {
        left: arguments[0].offsetLeft,
        top: arguments[0].offsetTop,
        width: arguments[0].offsetWidth,
        height: arguments[0].offsetHeight
      }''', [_single]))!;
  return Rectangle<num>(
      rect['left'], rect['top'], rect['width'], rect['height']);
}