updateState method
The way to create changes in the cell state externally.
Implementation
void updateState(
void Function(CellsModifier<CellDataType> modifier) stateUpdate,
) {
_lastPerformedOperations.clear();
final modifier = CellsModifier<CellDataType>._();
stateUpdate(modifier);
if (modifier._performedOperations.isEmpty) {
return;
}
_lastPerformedOperations = modifier._performedOperations;
modifier._commitChanges(_cellMatrix);
notifyListeners();
}