toList method

List<int> toList()

Transforms the Range object into a List of two elements (start and end).

Implementation

List<int> toList() {
  return [start, end];
}