dispose method
- @mustCallSuper
Teardown the cell state.
This method is called after removing the last observer. After the method is called this state object should no longer be used or interacted with.
Subclasses should override this method to remove observers on other cells and release resources acquired in init, as well as to include any additional cleanup logic.
Implementation
@mustCallSuper
void dispose() {
_isDisposed = true;
_cellStates.remove(key);
}