setMaximumSize method

Future<void> setMaximumSize(
  1. Size size
)

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 _channel.invokeMethod('setMaximumSize', arguments);
}