fromNow property

DateTime get fromNow

Returns a DateTime that is this duration after now.

const Duration(days: 3).fromNow // DateTime 3 days from now

Implementation

DateTime get fromNow => DateTime.now().add(this);