handleWebInterfaceCommand static method

Future<String> handleWebInterfaceCommand(
  1. String? jsMessage
)

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);
}