periodOffset property

int get periodOffset

The hour at which the current period starts.

Implementation

int get periodOffset => period == DayPeriod.am ? 0 : hoursPerPeriod;