isToday property
bool
get
isToday
是否为今天
Implementation
bool get isToday {
final nowDate = DateTime.now();
return year == nowDate.year && month == nowDate.month && day == nowDate.day;
}
是否为今天
bool get isToday {
final nowDate = DateTime.now();
return year == nowDate.year && month == nowDate.month && day == nowDate.day;
}