fromNow method

DateTime fromNow()

Returns a DateTime object with the current date and time having this duration added.

Example:

10.minutes.fromNow(); // DateTime in 10 minutes from now

Implementation

DateTime fromNow() => DateTime.now() + this;