onDeactivated function

void onDeactivated(
  1. VoidCallback callback
)

Registers a callback to be called when the widget is deactivated.

Implementation

void onDeactivated(VoidCallback callback) =>
    _lifeContext.onDeactivated(callback);