gherkinRows method

List<String> gherkinRows()

Gherkin table

Implementation

List<String> gherkinRows() {
  List<String> rows = [];

  if (_table.isNotEmpty) {
    rows.add("$_SPACER|${_columnNames.join(" | ")}|");

    for (var row in _table) {
      rows.add("$_SPACER|${row.values.join(" | ")}|");
    }
  }

  return rows;
}