addOrRemoveSeconds method

DateTime addOrRemoveSeconds(
  1. int seconds
)

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

Implementation

DateTime addOrRemoveSeconds(int seconds) {
  return this.add(Duration(seconds: seconds));
}