differenceInDuration property

Duration get differenceInDuration

Returns the calculated difference in time as a Duration.

Implementation

Duration get differenceInDuration {
  final controller = RelativeDateTimeController(dateTime, other);
  return controller.differenceInDuration;
}