resetForTesting method

  1. @visibleForTesting
void resetForTesting({
  1. SDKServices? services,
})

Implementation

@visibleForTesting
void resetForTesting({SDKServices? services}) {
  _initialized = false;
  _sdkState = SDKState.notInitialized;
  _pendingUserId = null;
  _pendingClearUserId = false;
  // A container the SDK built is released; a test-provided one is the
  // test's to manage.
  if (!_customServicesSet) _services?.dispose();
  _services = services;
  _customServicesSet = services != null;
}