peekNext property
T?
get
peekNext
Returns the next possible active item as if activeNext was called.
Implementation
T? get peekNext {
if (_items.isNotEmpty && _activeIndex < _items.length - 1) {
return _items[_activeIndex + 1];
} else if (_items.isNotEmpty && _loop) {
return _items[0];
} else {
return null;
}
}