next method
"If the index is less than the length of the list, increment the index and return the next item in the list."
The function is called next() because it returns the next item in the list
Returns: The next element in the list.
Implementation
Cross next() {
_index++;
return _schemes.getData[_index]!;
}