onTokenRefresh method
void
onTokenRefresh(
- dynamic callBack()
Adds a callback allowing to retrieve the new token after it was refreshed.
Implementation
void onTokenRefresh(Function() callBack) =>
_messaging.onTokenRefresh(allowInterop(() => callBack()));