argumentsToString static method

String argumentsToString(
  1. List<String>? arguments
)

Concatenates arguments into a string adding a space character between two arguments.

Implementation

static String argumentsToString(List<String>? arguments) {
  if (arguments == null) {
    return "null";
  }

  final StringBuffer stringBuffer = new StringBuffer();
  for (int i = 0; i < arguments.length; i++) {
    if (i > 0) {
      stringBuffer.write(" ");
    }
    stringBuffer.write(arguments[i]);
  }

  return stringBuffer.toString();
}