plusDays method
Adds a number of days to the date component.
Example:
final dt = LocalDateTime.of(2024, 6, 27, 14, 30);
final result = dt.plusDays(2);
Implementation
LocalDateTime plusDays(int days) => LocalDateTime(date.plusDays(days), time);
Adds a number of days to the date component.
final dt = LocalDateTime.of(2024, 6, 27, 14, 30);
final result = dt.plusDays(2);
LocalDateTime plusDays(int days) => LocalDateTime(date.plusDays(days), time);