createSwapChain method

Future createSwapChain(
  1. double width,
  2. double height, {
  3. Pointer<Void>? surface,
})

Implementation

Future createSwapChain(double width, double height,
    {Pointer<Void>? surface}) async {
  await withVoidCallback((callback) {
    create_swap_chain_ffi(_viewer!, surface ?? nullptr, width.toInt(),
        height.toInt(), callback);
  });
}