pauseWhenBackgrounded property

bool pauseWhenBackgrounded
getter/setter pair

Whether the game should pause when the app is backgrounded.

On the latest Flutter stable at the time of writing (3.13), this is only working on Android and iOS.

Defaults to true.

Implementation

bool pauseWhenBackgrounded = true;