handleWebInterfaceCommand static method
Execute Hackle command through the WebView interface
jsMessage
- The command message to execute.
Implementation
static Future<String> handleWebInterfaceCommand(String? jsMessage) {
if (jsMessage == null) {
return Future.value(
BridgeResponse.defaultJsonString("command is not valid"));
}
return HacklePlatform.instance.invokeHackleBridge(jsMessage);
}