isValid property
bool
get
isValid
Check if the range is valid
Implementation
bool get isValid {
if (startDate == null || endDate == null) return false;
return endDate!.isAfter(startDate!) ||
endDate!.isAtSameMomentAs(startDate!);
}