isToday property

bool get isToday

判断是否是今天

Implementation

bool get isToday {
  final now = DateTime.now();
  return year == now.year && month == now.month && day == now.day;
}