earliestPeriod property

Period? get earliestPeriod

Earliest period that has a course, or null if empty.

Implementation

Period? get earliestPeriod => isEmpty
    ? null
    : Period.values[keys.map((s) => s.period.index).reduce(min)];