comparesTo method
Checks the comparison date range has same logic as given comparisonOption.
Implementation
bool comparesTo(ComparisonOption? option) =>
comparison != null &&
option != null &&
range != null &&
comparison!.unclamped() ==
option.computeComparisonRange(range!.unclamped());