getWindowMaxSize property

  1. @override
Future<Size> get getWindowMaxSize
override

Get the maximum windows size.

Implementation

@override
Future<Size> get getWindowMaxSize async {
  final out = await methodChannel.invokeMethod(getWindowMaxSizeMethod);
  final result = Map<String, double>.from(out);

  final width = result['width'] ?? 0.0;
  final height = result['height'] ?? 0.0;

  return Size(width, height);
}