updateRowStatusOptimistic method
Implementation
void updateRowStatusOptimistic(String keyPath, CatalogCellStatus newStatus) {
_rows = _rows.map((row) {
if (row.keyPath == keyPath) {
return row.copyWith(rowStatus: newStatus);
}
return row;
}).toList();
notifyListeners();
}