toggle method

void toggle()

Implementation

void toggle() {
  _state?._setAnimationState(null);
  _isAnimating = _state?._isAnimating ?? false;
}