join method

String? join(
  1. String? other, [
  2. String separator = " "
])

Implementation

String? join(String? other, [String separator = " "]) {
  if (this == null && other == null) return null;
  if (this == null || other == null) return this ?? other;
  return "${this}$separator$other";
}