mapRemoteFunctionOfModule<T> method

RemoteFunction<T> mapRemoteFunctionOfModule<T>(
  1. String moduleId,
  2. String functionName,
  3. T returnType,
  4. List parameters,
)

Implementation

RemoteFunction<T> mapRemoteFunctionOfModule<T>(String moduleId, String functionName, T returnType, List<dynamic> parameters)
{
    if(moduleId == this._modId)
    {
      String msg = "Cannot map remote function. Module tried to map function \"" + functionName + "\" of itself, which is not allowed.";
      moduleFatal(msg);
      throw Exception(msg);
    }
    return this._remoteFunctionHandler.mapModuleFunction(moduleId, functionName, returnType, parameters);
}