findVideosAtTimeRange method

List<int> findVideosAtTimeRange(
  1. DateTime start,
  2. DateTime end
)

Implementation

List<int> findVideosAtTimeRange(DateTime start, DateTime end) => entries
    .where((videoEntry) => videoEntry.value.startTime.isBefore(end) && videoEntry.value.endTime.isAfter(start))
    .map((videoEntry) => videoEntry.key)
    .toList();