getFestivals method
Implementation
List<TaoFestival> getFestivals() {
List<TaoFestival> l = <TaoFestival>[];
List<TaoFestival>? fs = TaoUtil.FESTIVAL['${getMonth()}-${getDay()}'];
if (null != fs) {
l.addAll(fs);
}
String jq = _lunar!.getJieQi();
if ('冬至' == jq) {
l.add(new TaoFestival('元始天尊圣诞'));
} else if ('夏至' == jq) {
l.add(new TaoFestival('灵宝天尊圣诞'));
}
// 八节日
String? f = TaoUtil.BA_JIE[jq];
if (null != f) {
l.add(new TaoFestival(f));
}
// 八会日
f = TaoUtil.BA_HUI[_lunar!.getDayInGanZhi()];
if (null != f) {
l.add(new TaoFestival(f));
}
return l;
}