nextDay property
DateTime
get
nextDay
Returns a DateTime representing the day after this DateTime.
Example:
DateTime currentDate = DateTime(2022, 1, 8);
DateTime nextDay = currentDate.nextDay;
print(nextDay); // 2022-01-09 00:00:00.000
The nextDay
extension provides a convenient way to obtain a new DateTime instance
representing the day immediately following the original date.
Implementation
DateTime get nextDay => addDays(1);