reset method

void reset(
  1. int rows,
  2. int columns
)

Resets the TableCellHelper with new rows and columns, which should be used when TableRow count or TableCell content was changed, following setState.

Implementation

void reset(int rows, int columns) {
  assert(_rows >= 0 && _columns >= 0);
  _rows = rows;
  _columns = columns;
  _keys = List.generate(_rows, (_) => List.generate(_columns, (_) => GlobalKey()));
  _highests = <int>[];
}