nextDay property

DateTime get nextDay

Returns the date of the next day.

Example:

print(DateTime(2023, 1, 1).nextDay); // 2023-01-02

Implementation

DateTime get nextDay => add(const Duration(days: 1));