closeLater method
void
closeLater()
Schedules this popover to close after the current frame.
This method queues the close operation for the next frame, allowing any current operations to complete before dismissing the popover.
Implementation
void closeLater() {
var currentState = key.currentState;
if (currentState != null) {
currentState.closeLater();
} else {
entry.remove();
}
}