getSize method

Future<Size> getSize()

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

Implementation

Future<Size> getSize() async {
  return _target?.size.toSize() ?? Size.zero;
}