Returns true if the given period fits the generator.
period
bool fitsGenerator(Period period) { final newPeriod = of(period.start); return newPeriod == period; }