'Use the phone's power button to open the app in the flutter

I am writing an application with a flutter and I want to open the application for the person who has the application by pressing the power button three times. How can I do that?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source