onBeforeUnmount function

void onBeforeUnmount(
  1. VoidCallback callback
)

Registers a callback to be called before the widget is unmounted.

Implementation

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