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