comparisonEnabled property
Whether or not time comparison is enabled.
Implementation
@override
bool get comparisonEnabled => _comparisonEnabled;
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);
}
}