getDates method
Implementation
List<DateTime> getDates() {
List<DateTime> dates = <DateTime>[];
for (var i = 0; i < allDates.length; i += getInterval()) {
var date = allDates[i];
for (var j = 0; j < getByDay().length; ++j) {
var o = getByDay()[j];
if (DateFormat('EEEE').format(date) == o) {
dates.add(date);
}
}
}
return dates;
}