onPause property

VoidCallback? onPause
final

A callback that is called when the application is paused.

On mobile platforms, this happens right before the application is replaced by another application.

On desktop platforms and the web, this function is not called.

Implementation

final VoidCallback? onPause;