getLiuNianBy method

List<LiuNian> getLiuNianBy(
  1. int n
)

获取流年 n 轮数

Implementation

List<LiuNian> getLiuNianBy(int n) {
  if (_index < 1) {
    n = _endYear - _startYear + 1;
  }
  List<LiuNian> l = <LiuNian>[];
  for (int i = 0; i < n; i++) {
    l.add(LiuNian(this, i));
  }
  return l;
}