onInactive property

VoidCallback? onInactive

A callback that is called when the application loses input focus.

On mobile platforms, this can be during a phone call or when a system dialog is visible.

On desktop platforms, this is when all views in an application have lost input focus but at least one view of the application is still visible.

On the web, this is when the window (or tab) has lost input focus.


final VoidCallback? onInactive;