isValid property

bool isValid

Checks validity of DateTimeRange.

Implementation

bool get isValid => start != null && end != null && start!.compareTo(end!) <= 0;