initializeURL method
Implementation
Future<void> initializeURL() async {
try {
url = await URLBuilder.instance.url;
if (url != null) {
loadWebView();
} else {
setState(() {
// Show an error message or handle the absence of URL
});
}
} catch (error) {
print('Error occurred: $error');
setState(() {
// Show an error message or handle the error
});
}
}