isBetween method

bool isBetween(
  1. DateTime start,
  2. DateTime end
)

Checks if the current date is between the specified start and end dates (exclusive).

Returns true if the current date is after the start date and before the end date. Otherwise, returns false.

Implementation

bool isBetween(DateTime start, DateTime end) => isAfter(start) && isBefore(end);