onResumed method

void onResumed()

Executes code when the application is in the resumed state.

Implementation

// @override
void onResumed() {
  // loaded = true;
  // executa o código do onClose aqui
}