addSeconds method

DateTime addSeconds(
  1. int seconds
)

Add seconds to a DateTime

Implementation

DateTime addSeconds(int seconds) {
  if (this == null) throw Exception("DateTime is null");
  return this!.add(Duration(seconds: seconds));
}