addHeader method

void addHeader(
  1. List header
)

Add a header to the table.

Implementation

void addHeader(List<dynamic> header) {
  if (_rowCount != 0 && _rowCount != header.length) {
    throw Exception('Row has incorrect number of values.');
  }
  if (_rowCount == 0) {
    _rowCount = header.length;
  }
  _header.addAll(header);
}