getBounds method

Future<Rect> getBounds()

Returns Rect - The bounds of the window as Object.

Implementation

Future<Rect> getBounds() async {
  return _target?.bounds.toRect() ?? Rect.zero;
}