deleteRefreshToken static method

dynamic deleteRefreshToken()

Delete the FCM refresh token and retrieve a new token.

Implementation

static deleteRefreshToken() {
  FirebaseMessaging.instance.deleteToken();
  FirebaseMessaging.instance.getToken().then(_onTokenChanged);
}