clear method

void clear()

Implementation

void clear() {
  if (_tables.isEmpty) return;

  for (var table in _tables.values) {
    table.removeListener(_onTableChanged);
    table.dispose();
  }
  _tables.clear();

  if (!_isBatchMode) {
    notifyListeners();
  }
}