argumentsToString function Null safety

String argumentsToString(
  1. List<String> arguments
)

Convert multiple arguments to string than can be used in a terminal

Implementation

String argumentsToString(List<String> arguments) {
  final argumentStrings = <String>[];
  for (final argument in arguments) {
    argumentStrings.add(argumentToString(argument));
  }
  return argumentStrings.join(' ');
}