createSwapChain method
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);
});
}