getXiaoYunBy method

List<XiaoYun> getXiaoYunBy(
  1. int n
)

获取小运 n 轮数

Implementation

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