createLinuxController function

Future<Webview>? createLinuxController()

Gets the Linux WebViewController

This function demonstrates that the package uses desktop_webview_window which provides full Linux support through WebKitGTK.

Implementation

Future<Webview>? createLinuxController() {
  if (defaultTargetPlatform == TargetPlatform.linux) {
    return WebviewWindow.create();
  }
  return null;
}