ComparisonFn typedef
ComparisonFn =
DatepickerDateRange? Function(DatepickerDateRange range)
Converts current date range to comparison date range.
Return null if this is a "custom".
Implementation
typedef ComparisonFn = DatepickerDateRange? Function(DatepickerDateRange range);