MethodChannelFlutternative constructor

MethodChannelFlutternative()

Implementation

MethodChannelFlutternative() {
  /// Ranorex calls from android
  methodChannel.setMethodCallHandler((MethodCall methodCall) async {
    var arguments = methodCall.arguments;
    var command = CommandFactory.createCommand(methodCall.method);
    if (command != null) {
      return await command.execute(
          arguments, InMemoryCache().getElementMap());
    } else {
      return "Unknown method: ${methodCall.method}";
    }
  });
}