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 = source.selectedSourceId;
  final collection = source.selectedCollection;
  if (sourceId == null || collection == null || !canEditCells) return false;

  final ok = await edit.updateCell(
    sourceId: sourceId,
    collection: collection,
    column: column,
    newValue: newValue,
    row: row,
  );
  if (ok) await table.refresh();
  return ok;
}