comparisonOption property
What time comparison setting is chosen.
Implementation
@override
ComparisonOption? get comparisonOption => _comparisonOption;
Which time comparison option is selected.
Implementation
set comparisonOption(ComparisonOption? option) {
// Under "basic" mode, if user selects "custom" comparisonOption, show
// calendar view and hide pre-defined view.
if (basic && option == ComparisonOption.custom) {
shouldShowCustomDateRangeColumn = true;
shouldShowPredefinedList = false;
}
_setComparisonOption(option);
calendar.value = calendar.value!.select(rangeId,
previewAnchoredAtStart: calendar.value!.previewAnchoredAtStart);
}