fromNow property

Duration get fromNow

Extension method to calculate the duration from the current date and time to the given date and time.

Implementation

Duration get fromNow => now.difference(this);