initialize method
Implementation
Future<void> initialize() async {
if (Platform.isWindows) {
_webViewController = windows_webview.WebviewController();
await _webViewController!.initialize();
} else if (Platform.isMacOS) {
_webViewController = const macos_webview.InlineWebViewMacOs(
width: 500,
height: 300,
);
} else {
throw UnsupportedError('This package only supports Windows and macOS platforms');
}
}