setCollectionRowCount method

void setCollectionRowCount(
  1. String collection,
  2. int value
)

Implementation

void setCollectionRowCount(String collection, int value) {
  final index = _collections.indexWhere(
    (element) => element.name == collection,
  );
  if (index != -1) {
    _collections[index].setRowCount(value);
  }
}