sessionsForDateKey method

List<PracticeSession> sessionsForDateKey(
  1. DateKey arg
)

Implementation

List<PracticeSession> sessionsForDateKey(DateKey arg) {
  List<PracticeSession> result = [];
  for (var element in _sessions) {
    if (element.dateKey() == arg) {
      result.add(element);
    }
  }
  return result;
}