create static method

Pointer<SdlWindow> create({
  1. required String title,
  2. int? x,
  3. int? y,
  4. required int w,
  5. required int h,
  6. dynamic flags = 0,
})

Implementation

static Pointer<SdlWindow> create(
    {required String title,
    int? x,
    int? y,
    required int w,
    required int h,
    flags = 0}) {
  x ??= SDL_WINDOWPOS_CENTERED;
  y ??= SDL_WINDOWPOS_CENTERED;
  // 709
  return sdlCreateWindow(title, x, y, w, h, flags);
}