duration property
Duration?
get
duration
Returns a Duration of the time between start and end.
See DateTime.difference for more details.
Implementation
Duration? get duration =>
start == null || end == null ? null : end!.difference(start!);