create static method

Window? create()

Creates a new Window; returns null if the native side failed.

Implementation

static Window? create() {
  final handle = c.native_window_create();
  if (handle == 0) return null;
  return Window.fromHandle(handle);
}