inDays property Null safety

int inDays

The number of entire days spanned by this Duration.

For example, a duration of four days and three hours has four entire days.

const duration = Duration(days: 4, hours: 3);
print(duration.inDays); // 4

Implementation

int get inDays => _duration ~/ Duration.microsecondsPerDay;