toggle method

void toggle()

Toggles the visibility of the AbstractTransitionComponent based on the value of AbstractTransitionState.transitionPhase.

Implementation

void toggle() {
  if (isOrWillBeShown) {
    /// If the [AbstractTransitionComponent] is shown or in the process of showing, hide it.
    hide();
  } else if (isOrWillBeHidden) {
    /// If the [AbstractTransitionComponent] is hidden or in the process of hiding, show it.
    show();
  }
}