nothaveHoroscopeStars method
判断指定运限宫位内是否不含流耀,需要全部不包含才返回true palaceName 宫位名称 scope 指定获取那个运限的宫位 horoscopeStar 流耀
Implementation
@override
bool nothaveHoroscopeStars(
PalaceName palaceName,
Scope scope,
List<StarName> horoscope,
) {
// TODO: implement nothaveHoroscopeStars
if (decadal.stars == null || yearly.stars == null) {
return true;
}
int palaceIndex = _getHoroscopePalaceIndex(this, scope, palaceName);
final stars =
mergeStars([decadal.stars ?? [], yearly.stars ?? []])[palaceIndex];
final starKeys = stars.map((item) => item.name);
return horoscope.every((item) => !starKeys.contains(item));
}