resetToInitialPosition method

void resetToInitialPosition()

Implementation

void resetToInitialPosition() {
  // Reset the wheel to its initial position
  controller.reset();
  _currentAngle = WheelAnimationConstants.defaultAngle;

  // Clear cache
  _cachedTotalWeight = null;
  _cachedSegments = null;
}