currentItem property

int get currentItem

Item the next swipe or next call continues from.

Implementation

int get currentItem {
  final int Function()? read = _readItem;
  if (read != null) {
    return read();
  }
  if (!hasClients || positions.length != 1) {
    return initialItem;
  }
  return leadingItem;
}