loadUrl method
Implementation
Future<void> loadUrl(String url) async {
if (_webViewController == null) {
throw Exception('WebViewController not initialized.');
}
if (Platform.isWindows) {
await _webViewController!.loadUrl(url);
} else if (Platform.isMacOS) {
await _webViewController!.loadUrl(
urlRequest: URLRequest(url: Uri.parse(url)),
);
}
}