fromTo static method

List<int> fromTo(
  1. int from,
  2. int to
)

Generate dates from a year to a year

Implementation

static List<int> fromTo(int from, int to) {
  List<int> years = [];
  for (int i = from; i < to; i++) {
    years.insert(0, i);
  }
  return years;
}