formatRow method

String formatRow(
  1. Iterable<Object?> row
)

Formats a single iterable row of strings as delimiter-separated values, returning a string.

Each column within the row will be separated by the delimiter (such as a comma, ,). Values that contain either the delimiter, a double-quote (") or a newline will be escaped using double-quotes.

Implementation

String formatRow(Iterable<Object?> row) {
  return row.map(formatValue).join(_delimiter);
}