loadWebBindings static method
dynamic
loadWebBindings()
Implementation
static loadWebBindings() async {
if (bridgeLoaded == false) {
try {
String script =
await rootBundle.loadString('packages/runevm_fl/assets/bridge.js');
JS.injectScript(script);
bridgeLoaded = true;
print("Bridge is loaded");
} catch (e) {
print("Exception $e while loading bridge");
bridgeLoaded = false;
}
}
}