setDesktopMaxWindowSize method

Future<bool> setDesktopMaxWindowSize(
  1. Size size
)

Implementation

Future<bool> setDesktopMaxWindowSize(Size size) async {
  if (!supportPlatformDesktop) return false;
  final bool? state = await channel.invokeMethod<bool?>('setMaxWindowSize',
      <String, double>{'width': size.width, 'height': size.height});
  return state ?? false;
}