setFcmToken method

void setFcmToken(
  1. String token
)

set the FCM token

Implementation

void setFcmToken(String token) {
  if (_deviceMeta.containsKey('fcm_token')) {
    _deviceMeta['fcm_token'] = token;
  } else {
    _deviceMeta.addAll({"fcm_token": token});
  }
  _setDioHeaders();
}