fromNow method

DateTime fromNow()

Returns a DateTime representing this duration added to now.

Example:

final expiresAt = 10.minutes.fromNow();

Implementation

DateTime fromNow() {
  return DateTime.now().add(this);
}