createUser method
Implementation
Future<void> createUser({required User user}) async {
await _setUser(user: user);
final sdkData = await sdkDataPersistenceService.currentSdkParam();
final deviceToken = await sdkDataPersistenceService.deviceToken();
if (deviceToken != null) {
await _callUpdateDevice(
deviceToken: deviceToken,
pushEnabled: sdkData?.pushEnabled ?? true,
);
}
if (!(sdkData?.isSubscribed ?? true)) {
await _suppressUser(user.email);
}
}