getRange():
- The returned iterable iterates over the elements of this list with positions greater than or equal to start and less than end.
Example:
void main() {
List<int> nums = [1, 2, 3, 4, 5, 6, 7];
Iterable<int> evenNums = nums.getRange(1, 6);
print(evenNums.toList());
}
[2, 3, 4, 5, 6]
Exited.