position property

int get position

The 1-based position of current, or 0 when there's none.

Implementation

int get position {
  final index = _index;
  return index == null ? 0 : index + 1;
}