onClose method

  1. @override
void onClose()
override

Called when the popup is closed.

Implementation

@override
void onClose() {
  if (_id == null) return;
  if (_previousDescribedbyId != null) {
    _element.setAttribute('aria-describedby', _previousDescribedbyId!);
  } else {
    _element.attributes.remove('aria-describedby');
  }
}