getSignByLunarDate function

String getSignByLunarDate(
  1. String lunarDateStr,
  2. bool? isLeapMonth
)

通过农历获取星座

Implementation

String getSignByLunarDate(String lunarDateStr, bool? isLeapMonth) {
  final solarDate = lunar2Solar(lunarDateStr, isLeapMonth ?? false);
  return getSignBySolarDate(solarDate.toString());
}