createMutableState method
MutableComputedCellState<T, MutableDependentCell<T> >
createMutableState({
- covariant MutableComputedCellState<
T, MutableDependentCell< ? oldState,T> >
Create the state for the MutableCell.
oldState
is the previous state of the cell, or null
if the cell
doesn't have a state yet. Implementations of this method, should use
oldState
to return a new state that produces the same value as would
be produced with oldState
.
Implementation
@override
MutableComputedCellState<T, MutableDependentCell<T>> createMutableState({
covariant MutableComputedCellState<T, MutableDependentCell<T>>? oldState
}) {
if (changesOnly) {
return MutableComptedChangesOnlyCellState(
cell: this,
key: key,
arguments: arguments,
oldState: oldState
);
}
return MutableComputedCellState(
cell: this,
key: key,
arguments: arguments,
oldState: oldState
);
}