contains method

bool contains(
  1. LocalDate other
)

Implementation

bool contains(LocalDate other) =>
    start == other || end == other || start < other && end > other;