transferComponentState method
Transfers Component
_nextState
to state, and state to prevState.
DEPRECATED.
This was never designed for public consumption, and there will be no replacement implementation in
Component2
.Will be removed when
Component
is removed in a future major release.
Implementation
@Deprecated('For internal use only.')
void transferComponentState() {
prevState = state;
if (_nextState != null) {
state = _nextState!;
}
_nextState = Map.from(state);
}