canChangeCellValue method
Whether the cell is in a mutable state
Implementation
@override
bool canChangeCellValue({
required PlutoCell cell,
dynamic newValue,
dynamic oldValue,
}) {
if (!mode.isEditableMode) {
return false;
}
if (cell.column.checkReadOnly(
cell.row,
cell.row.cells[cell.column.field]!,
)) {
return false;
}
if (!isEditableCell(cell)) {
return false;
}
if (newValue.toString() == oldValue.toString()) {
return false;
}
return true;
}