You just have to write exit(0); to terminate whole Flutter Application.
How to Programmatically Exit App
May 12, 2020
Let's Flutter
You just have to write exit(0); to terminate whole Flutter Application.