comparisonEnabled property

  1. @override
bool get comparisonEnabled
override

Whether or not time comparison is enabled.

Implementation

@override
bool get comparisonEnabled => _comparisonEnabled;
set comparisonEnabled (bool? enabled)
override

true if time comparison is turned on.

Implementation

set comparisonEnabled(bool? enabled) {
  _comparisonEnabled = enabled ?? false;
  calendar.value = calendar.value?.select(rangeId,
      previewAnchoredAtStart: calendar.value!.previewAnchoredAtStart);
  if (value?.range != null) {
    _changeValue(_withComparison(value!.range), Action.button);
  }
}