getCurrentIndex method

double getCurrentIndex(
  1. int? itemCount
)

Animates to the specified value.

Implementation

double getCurrentIndex(int? itemCount) {
  if (itemCount == null) {
    return _controller.value;
  } else {
    return wrapDouble(_controller.value, 0, itemCount.toDouble());
  }
}