addOrRemoveMonth method

dynamic addOrRemoveMonth(
  1. int months
)

to add month to a DateTime add a positive number to remove years pass a negative number

Implementation

addOrRemoveMonth(int months) {
  return DateTime(year, month + months, day, minute, second);
}