removeRows method

void removeRows(
  1. Iterable<FlexTableRow> rows
)

Removes the given rows from the FlexTable.

This will post a single event at the end to the rowStream if at least one of the given rows was removed.

Implementation

void removeRows(Iterable<FlexTableRow> rows) {
  var removed = false;
  for (final row in rows) {
    removed = _allRows.remove(row) || removed;
  }

  if (removed) {
    _sortAndFilter();
  }
}