age property

Duration get age

Age of the batch measured from the first event added.

Implementation

Duration get age {
  if (_firstEventTime == null) return Duration.zero;
  return DateTime.now().difference(_firstEventTime!);
}