updateCell method

Future<bool> updateCell({
  1. required String sourceId,
  2. required String collection,
  3. required String column,
  4. required Object? newValue,
  5. required Map<String, Object?> row,
})

Implementation

Future<bool> updateCell({
  required String sourceId,
  required String collection,
  required String column,
  required Object? newValue,
  required Map<String, Object?> row,
}) async {
  busy = true;
  lastError = null;
  notifyListeners();
  try {
    await _repository.updateCell(sourceId, collection, column, newValue, row);
    busy = false;
    notifyListeners();
    return true;
  } catch (error) {
    busy = false;
    lastError = 'Failed to update cell: $error';
    notifyListeners();
    return false;
  }
}