createWindow static method

Future<WindowManagerPlus?> createWindow([
  1. List<String>? args
])

Create a new window.

Implementation

static Future<WindowManagerPlus?> createWindow([List<String>? args]) async {
  final Map<String, dynamic> arguments = {
    'args': args,
  };
  int? windowId =
      await _staticChannel.invokeMethod('createWindow', arguments);
  if (windowId == null) {
    return null;
  }
  _completers[windowId] = Completer();
  await _completers[windowId]?.future;
  return WindowManagerPlus._fromWindowId(windowId);
}