deleteRow method

void deleteRow(
  1. int index
)

Removes the row with given index.

The index must be in the range 0..rows-1.

Implementation

void deleteRow(int index) {
  if (!(index >= 0 && index < rows)) {
    throw ArgumentError('index must be a valid row index');
  }

  _table.removeAt(index + 1); // Header is row 0

  assert(_tableIntegrity);
}