getMonthsInYear method

List<LunarMonth> getMonthsInYear()

Implementation

List<LunarMonth> getMonthsInYear() {
  List<LunarMonth> l = [];
  for (LunarMonth m in _months) {
    if (m.getYear() == _year) {
      l.add(m);
    }
  }
  return l;
}