'"Uncaught (in promise) ReferenceError: openpgp is not defined", source: data:text/html;charset=utf-8

I am using Html webview in flutter. In HTML I am using OpenPGP javascript library. Once load webview. it shows error like this.

"Uncaught (in promise) ReferenceError: openpgp is not defined", source: data:text/html;charset=utf-8



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source