closeLater method

void closeLater()

Implementation

void closeLater() {
  var currentState = key.currentState;
  if (currentState != null) {
    currentState.closeLater();
  } else {
    entry.remove();
  }
}