getCurrentIndex method
Animates to the specified value.
Implementation
double getCurrentIndex(int? itemCount) {
if (itemCount == null) {
return _controller.value;
} else {
return wrapDouble(_controller.value, 0, itemCount.toDouble());
}
}