toRange method

List<int> toRange(
  1. int end
)

Implementation

List<int> toRange(int end) =>
    this < end ? [for (int i = toInt(); i < end; i++) i] : [];