getDayAfterBirthStrFromDateTime method Null safety
- DateTime dateTime
선택된 날짜를 기준으로 일령 계산하고 String으로 반환합니다.
Implementation
String getDayAfterBirthStrFromDateTime(DateTime dateTime) {
if (birth != null) {
int result = getDayAfterBirthFromDateTime(dateTime);
return result > 0 ? result.toString() : "-";
} else {
return "-";
}
}