FcmTokenManager.initialize constructor

FcmTokenManager.initialize({
  1. required FcmAppBackendInterface apiInterface,
  2. required Duration tokenTtl,
})

Call this to initialize manager before calling other methods

Implementation

factory FcmTokenManager.initialize({
  required FcmAppBackendInterface apiInterface,
  required Duration tokenTtl,
}) {
  _instance._api = apiInterface;
  _instance._tokenTtl = tokenTtl;
  return _instance;
}