concatValues static method

String? concatValues(
  1. String? value1,
  2. String? value2
)

Implementation

static String? concatValues(String? value1, String? value2) {
  if (value1 == null || value1 == '') return value2;
  if (value2 == null || value2 == '') return value1;
  return value1 + ',' + value2;
}