How to execute code before app exit flutter
You can not do exactly what you want to do right now, anyway, the best approach right now is to check when the application it’s running in background/inactive using the AppLifecycleState from the SDK (basically does what your library is trying to do) The library that you are using it’s outdated, since a pull request … Read more