setUserId method

Future<void> setUserId(
  1. String userId
)

Implementation

Future<void> setUserId(String userId) async {
  try {
    await _identityInitialization;
  } catch (error) {
    debugPrint('[Digia] identity unavailable: $error');
    return;
  }
  if (!_initialized) {
    debugPrint('[Digia] setUserId() called before initialize().');
    return;
  }
  await DigiaAnalyticsService.instance.setUserId(userId);
}