table method

void table(
  1. List<String> headers,
  2. List<List<String>> rows
)

Display data in a formatted table

Implementation

void table(List<String> headers, List<List<String>> rows) {
  final consoleTable = ConsoleTable(headers: headers, rows: rows);
  consoleTable.render();
}