operator + method

DateTime operator +(
  1. Duration duration
)

Returns a new DateTime instance with duration added to this.

Alias for DateTime.add.

Implementation

DateTime operator +(Duration duration) => add(duration);