didPeriodChange method

bool didPeriodChange()

Whether the DayPeriod changed or not

Implementation

bool didPeriodChange() {
  return lastPeriod != time.period;
}