comparisonOption property

  1. @override
ComparisonOption? get comparisonOption
override

What time comparison setting is chosen.

Implementation

@override
ComparisonOption? get comparisonOption => _comparisonOption;
set comparisonOption (ComparisonOption? option)
override

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