filterByRange method

Iterable<C> filterByRange(
  1. DateTime start,
  2. DateTime end
)

Implementation

Iterable<C> filterByRange(DateTime start, DateTime end) => where((e) =>
        e.closingRange.start.isAfter(start) ||
        e.closingRange.start.isAtSameMomentAs(start))
    .where((e) =>
        e.closingRange.end.isBefore(end) ||
        e.closingRange.end.isAtSameMomentAs(end));