stringify method

String stringify()

Implementation

String stringify() {
  if (isEmpty) return ''; // Return empty string if the list is empty
  // Use join() to concatenate the string representations of elements
  // within the list separated by commas
  return map((element) => element.toString()).join(', ');
}