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