FlutterDesktopViewControllerCreate method
Pointer<FlutterDesktopViewControllerState>
FlutterDesktopViewControllerCreate(
- int width,
- int height,
- Pointer<
FlutterDesktopEngine> engine
Creates a view that hosts and displays the given engine instance.
This takes ownership of engine
, so FlutterDesktopEngineDestroy should
no longer be called on it, as it will be called internally when the view
controller is destroyed. If creating the view controller fails, the engine
will be destroyed immediately.
If engine
is not already running, the view controller will start running
it automatically before displaying the window.
The caller owns the returned reference, and is responsible for calling FlutterDesktopViewControllerDestroy. Returns a null pointer in the event of an error.
Implementation
Pointer<FlutterDesktopViewControllerState> FlutterDesktopViewControllerCreate(
int width,
int height,
Pointer<FlutterDesktopEngine> engine,
) =>
_FlutterDesktopViewControllerCreate(
width,
height,
engine,
);