Google is committed to advancing racial equity for Black communities. See how.

addTerminateListener method

bool addTerminateListener (Future<void> listener())

Adds a terminate listener which will be called when the system starts to shutdown this process. Returns false if this listener was already added.

Implementation

bool addTerminateListener(Future<void> Function() listener);