years property

List<int> get years

Implementation

List<int> get years =>
    List<int>.generate(7, (int index) => DateTime.now().year - index);