currentWindow property

Window currentWindow

Get the current window.

Note: the value returned by this method is not cached.

SDL Docs

Implementation

Window get currentWindow {
  final ptr = sdl.SDL_GL_GetCurrentWindow();
  if (ptr == nullptr) {
    throw SdlError(0, getError());
  }
  return Window(this, ptr);
}