passedDays property
int
get
passedDays
Returns the number of days that have passed since this DateTime.
Implementation
int get passedDays {
final now = DateTime.now();
final today = DateTime(now.year, now.month, now.day);
final self = DateTime(year, month, day);
return today.difference(self).inDays;
}