functionParametersValue function

String functionParametersValue(
  1. MethodElement method,
  2. int messageIndex
)

Implementation

String functionParametersValue(final MethodElement method, int messageIndex) {
  String arg = "";

  for (var par in method.parameters) {
    arg += par.isNamed
        ? "${par.name}:message[${messageIndex++}],"
        : "message[${messageIndex++}],";
  }

  return arg;
}