getWindowSize static method

Future<Size> getWindowSize()

Implementation

static Future<Size> getWindowSize() async {
  final arr = await _channel.invokeMethod('getWindowSize');
  if (arr is List && arr.length == 2) {
    return Size(arr[0], arr[1]);
  }
  throw arr;
}