getByIndex method
Returns the value at the given index in the internal list.
Throws RangeError if index is out of bounds.
This method enables efficient iteration without exposing keys:
for (var i = 0; i < map.length; i++) {
final value = map.getByIndex(i);
// Process value...
}
Time complexity: O(1)
Implementation
V getByIndex(int index) => _values[index];