onTokenRefresh method

void onTokenRefresh(
  1. dynamic callBack()
)

Adds a callback allowing to retrieve the new token after it was refreshed.

Implementation

void onTokenRefresh(Function() callBack) =>
    _messaging.onTokenRefresh(allowInterop(() => callBack()));