comparesTo method

bool comparesTo(
  1. ComparisonOption? option
)

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());