duration property
Duration?
get
duration
Get the duration of the range
Implementation
Duration? get duration {
if (!isValid) return null;
return endDate!.difference(startDate!);
}
Get the duration of the range
Duration? get duration {
if (!isValid) return null;
return endDate!.difference(startDate!);
}