lunarSolarConverter function

Lunar lunarSolarConverter(
  1. DateTime date
)

公历转农历

Implementation

Lunar lunarSolarConverter(DateTime date) {
  Solar solar =
      Solar(solarYear: date.year, solarMonth: date.month, solarDay: date.day);
  return LunarSolarConverter.solarToLunar(solar);
}