onClose method

void onClose()

Implementation

void onClose() {
  readyState = 'closed';
  emit('close');
}