updateCellValue method

Future<bool> updateCellValue({
  1. required String column,
  2. required Object? newValue,
  3. required Map<String, Object?> row,
})

Implementation

Future<bool> updateCellValue({
  required String column,
  required Object? newValue,
  required Map<String, Object?> row,
}) async {
  final sourceId = selectedSourceId;
  final collection = selectedCollection;
  if (sourceId == null || collection == null || !canEditCells) return false;

  try {
    await _updateCell(sourceId, collection, column, newValue, row);
    await refresh();
    return true;
  } catch (error) {
    lastError = 'Failed to update cell: $error';
    notifyListeners();
    return false;
  }
}