onRangeClicked method

void onRangeClicked(
  1. UIEvent event
)

Implementation

void onRangeClicked(UIEvent event) {
  // Close eagerly for preset ranges and the cleared range.
  final shouldCloseEagerly = _isPreset(model.value) ||
      (model.value!.range == null && model.value!.comparison == null);
  if (shouldCloseEagerly) {
    // Don't render preset changes to the calendar while the popup is closing
    allowHighlightUpdates = false;
    apply(event);
  }
}