addOrRemoveSeconds method

dynamic addOrRemoveSeconds(
  1. int sec
)

to add sec to a DateTime add a positive number to remove sec pass a negative number

Implementation

addOrRemoveSeconds(int sec) {
  return DateTime(year, month, day, minute, second + sec);
}