daysUntil method

Iterable<Hora> daysUntil(
  1. Hora end, {
  2. bool inclusive = true,
})

Generates dates between this and another date.

Implementation

Iterable<Hora> daysUntil(Hora end, {bool inclusive = true}) sync* {
  var current = this;
  final target = inclusive ? end.add(1, TemporalUnit.day) : end;

  while (current.isBefore(target)) {
    yield current;
    current = current.add(1, TemporalUnit.day);
  }
}