getPosition method

Future<Offset> getPosition()

Returns Offset - Contains the window's current position.

Implementation

Future<Offset> getPosition() async {
  Rect bounds = await getBounds();
  return bounds.topLeft;
}