onInit method
Called immediately after the widget is allocated in memory. You might use this to initialize something for the controller.
Implementation
@override
void onInit() {
super.onInit();
final Map<String, dynamic> args = Get.arguments;
url.value = args['url'];
title.value = args['title'];
webController = WebViewController()
..setJavaScriptMode(JavaScriptMode.unrestricted)
..setBackgroundColor(const Color(0x00000000))
..setNavigationDelegate(
NavigationDelegate(onProgress: (int progress) {
loadProgress.value = progress.toDouble();
}),
)
..loadRequest(Uri.parse(url.value));
}