isOngoing method

  1. @override
bool isOngoing(
  1. DateTime dateTime
)
inherited

Like isOngoing, but check dateTime's date only

Implementation

@override
bool isOngoing(DateTime dateTime) =>
    (dateTime.year >= _dt.year &&
        dateTime.month >= _dt.month &&
        dateTime.day >= _dt.day) &&
    (dateTime.year <= _untilDt.year &&
        dateTime.month <= _untilDt.month &&
        dateTime.day <= _untilDt.day);