between method

List<TouchRecord> between(
  1. DateTime from,
  2. DateTime to
)

The touches that began between from and to.

Implementation

List<TouchRecord> between(DateTime from, DateTime to) => [
      for (final r in _records)
        if (!r.at.isBefore(from) && !r.at.isAfter(to)) r,
    ];