contains method

bool contains(
  1. Hora time
)

Checks if time is within the wall-clock range in timezone.

Implementation

bool contains(Hora time) {
  if (!time.isValid) return false;
  final wall = time.inTimezone(timezone).wallClock;
  return !wall.isBefore(start.wallClock) && !wall.isAfter(end.wallClock);
}