updateController method

dynamic updateController({
  1. required WebViewController controller,
})

updates the Web view controller

Implementation

updateController({required WebViewController controller}) {
  _instance?.controller = controller;

  controller.runJavaScript(
      '${AppConstants.readyCaptcha}("${_instance?._siteKey}", "submit")');
}