contains method

bool contains(
  1. Instant instant
)

Returns whether or not this interval contains the given instant.

  • instant: Instant to test.

Returns: True if this interval contains the given instant; false otherwise.

Implementation

bool contains(Instant instant) => instant >= _start && instant < _end;