addOrSubtractDays method

DateTime addOrSubtractDays(
  1. int days
)

Adds or subtracts the specified number of days from this DateTime. Using a positive value (e.g., 1) adds days, while a negative value (e.g., -1) subtracts days.

Implementation

DateTime addOrSubtractDays(int days) => add(Duration(days: days));