title: What is the similar method of onDestroy() or applicationWillTerminate() in Flutter?
body: <p>I am new in Flutter. I am working on one of my demo Flutter app. I have created 3 screens (Login, Signup and Home) in my app. I am just navigating to the Home screen from the login screen. Now I want to check - Is my app is alive or closed? - by clearing the app from the recent apps in Android and IOS. I have checked <em>AppLifecycleState.detached</em> and also checked override method <em>dispose()</em> but these are not calling while user killed the app. Please help me how I come to know that my app got killed. Which method I need to use.</p>
  
  <p>I have used <em>AppLifecycleState.paused</em> for other process. So I want any other way to handle it.</p>
  
  <p>In native Android we can check this with the help of <em>onDestroy()</em> method and in iOS native app we can check it with the help of <em>applicationWillTerminate()</em> .</p>
  
  <p>Which method I need to use for Flutter?</p>