getSize method

Future<Size> getSize()

Returns Size - Contains the window's width and height.

Implementation

Future<Size> getSize() async {
  Rect bounds = await getBounds();
  return bounds.size;
}