swap method
swaps the inner values between this cell and that cell
.
Implementation
void swap(covariant Cell<T> cell) {
final temp = cell._val;
cell._val = _val;
_val = temp;
}
swaps the inner values between this cell and that cell
.
void swap(covariant Cell<T> cell) {
final temp = cell._val;
cell._val = _val;
_val = temp;
}