isClosed property

bool isClosed

True if the interval is closed (both start and end are non null).

Implementation

bool get isClosed => startTime != null && endTime != null;