lunarString property

String lunarString

/ return LunarUtil.solarToLunar(year, month, day);

Implementation

//  }

  //农历字符串
  String get lunarString {
    if (solarTerm.isNotEmpty) {
      return solarTerm;
    } else if (gregorianFestival.isNotEmpty) {
      return gregorianFestival;
    } else if (traditionFestival.isNotEmpty) {
      return traditionFestival;
    } else {
      return LunarUtil.numToChinese(lunar[1], lunar[2], lunar[3]);
    }
  }