setMaximumSize method
Sets the maximum size of window to width
and height
.
Implementation
Future<void> setMaximumSize(Size size) async {
final Map<String, dynamic> arguments = {
'devicePixelRatio': getDevicePixelRatio(),
'width': size.width,
'height': size.height,
};
await _invokeMethod('setMaximumSize', arguments);
}