ngAfterChanges method

  1. @override
void ngAfterChanges()

Implementation

@override
void ngAfterChanges() {
  // Checks the edge case if user enter a wrong comparison range that
  // is not supported.
  if (supportsComparison &&
      _comparisonOptions != null &&
      selection.value != null &&
      !_isComparisonOptionsSupported(selection.value!)) {
    throw UnsupportedError('Your comparisonOptions don\'t support your'
        ' input datePickerComparison: ${selection.value}');
  }
}