setFullScreen method
Sets whether the window should be in fullscreen mode.
Implementation
Future<void> setFullScreen(bool isFullScreen) async {
final Map<String, dynamic> arguments = {
'isFullScreen': isFullScreen,
};
await _invokeMethod('setFullScreen', arguments);
// (Windows) Force refresh the app so it 's back to the correct size
// (see GitHub issue #311)
if (Platform.isWindows) {
final size = await getSize();
setSize(size + const Offset(1, 1));
setSize(size);
}
}