1. override
void detached()

Called by the DOM when this element has been removed from the live document.

More information can be found in the Custom Elements draft specification.

Source

@override
void detached() {
  super.detached();
  pickerOpen=false;

}