appHangTimeoutInterval property
The minimum amount of time an app should be unresponsive to be classified as an App Hanging. The actual amount may be a little longer. Avoid using values lower than 100ms, which may cause a lot of app hangs events being transmitted. Default to 2s. Only available on iOS and macOS.
Implementation
Duration appHangTimeoutInterval = Duration(seconds: 2);