listLuckyHours property
Generates a list of lucky hours of this date.
Implementation
List<bool> get listLuckyHours {
var jd = FullCalenderExtension.convertLunarDateToJulianDay(this);
var num = (jd + 1) % 12;
final List<int> louisSequence = _convertToLouisSequence(num);
var isLucky =
(num == 0 || num == 2 || num == 3 || num == 6 || num == 7 || num == 9);
List<bool> listLucky = [];
for (var i in louisSequence) {
var temp = i;
while (temp > 0) {
listLucky.add(isLucky);
temp--;
}
isLucky = !isLucky;
}
return listLucky;
}