updateState method
Implementation
CubitEntity updateState(CubitStateEntity state) {
return copyWith(
currentState: state.id,
stateHistory: [...stateHistory, state],
);
}
CubitEntity updateState(CubitStateEntity state) {
return copyWith(
currentState: state.id,
stateHistory: [...stateHistory, state],
);
}