elapsed property
Duration
get
elapsed
Returns how much time has elapsed since this date. If the date is null or in the future, then Duration.zero will be returned
Implementation
Duration get elapsed {
if (this == null) return Duration.zero;
if (this!.isFuture) return Duration.zero;
return this!.sinceNow();
}