onBackground method
void
onBackground()
Called when the app switches from the foreground to the background.
Implementation
void onBackground() {}
Called when the app switches from the foreground to the background.
void onBackground() {}