currentIndex property
int?
get
currentIndex
The index of the current source in the sequence.
Implementation
int? get currentIndex =>
sequence.isNotEmpty ? min(_currentIndex ?? 0, sequence.length - 1) : null;