changeFoldState method

void changeFoldState()

Implementation

void changeFoldState() {
  if (isUnfold.value != showMoreButton.value) {
    return;
  }
  Future.delayed(const Duration(milliseconds: 300), () {
    showMoreButton.value = isUnfold.value;
  });
  isUnfold.value = !isUnfold.value;
  if (isUnfold.value) {
    conferenceMainController.cancelHideTimer();
  } else {
    conferenceMainController.resetHideTimer();
  }
}