makeTargetDates static method
Implementation
static List<DateTime> makeTargetDates(DateTime from, DateTime to) {
List<DateTime> result = [];
var tmp = from;
while (new DateTime(tmp.year, tmp.month, tmp.day)
.isBefore(new DateTime(to.year, to.month, to.day)) ||
isSameDay(new DateTime(tmp.year, tmp.month, tmp.day),
new DateTime(to.year, to.month, to.day))) {
result.add(new DateTime(tmp.year, tmp.month, tmp.day));
tmp = new DateTime(tmp.year, tmp.month, tmp.day).add(Duration(days: 1));
}
return result;
}