animateTo method
Implementation
void animateTo(int index) {
if (index == currentIndex) return;
vsync.animateTo(getOffsetAngleFormTargetIndex(index));
}
void animateTo(int index) {
if (index == currentIndex) return;
vsync.animateTo(getOffsetAngleFormTargetIndex(index));
}