add method

Date add(
  1. Duration duration
)

Returns a new Date with the given duration added.

Implementation

Date add(Duration duration) => toDateTime().add(duration).toDate();