notifyChangeWindowState method

Future<void> notifyChangeWindowState(
  1. WindowState newState, [
  2. Map<String, String>? labels
])

Notifies of a new Change Volume event with the given new state.

@param newState One of these: WindowState.NORMAL, WindowState.FULL_SCREEN, WindowState.MINIMIZED or WindowState.MAXIMIZED @param labels Labels

Implementation

Future<void> notifyChangeWindowState(WindowState newState, [Map<String, String>? labels]) {
  var args = buildArguments();
  args[Args.labels] = labels;
  args["newState"] = newState.value;
  return _methodChannel.invokeMethod<void>('notifyChangeWindowState', args);
}