setAnimateToIndexCallback method
Implementation
void setAnimateToIndexCallback(ValueChanged<int> callback) {
_animateToIndexCallback = callback;
}
void setAnimateToIndexCallback(ValueChanged<int> callback) {
_animateToIndexCallback = callback;
}