endOfDay property
DateTime
get
endOfDay
Returns the last moment (23:59:59.999) of this date.
Implementation
DateTime get endOfDay => _calendarDate(year, month, day + 1)
.subtract(const Duration(milliseconds: 1));