setUser static method

void setUser(
  1. String userId
)

Implementation

static void setUser(String userId) {
  if (!Sentry.isEnabled) return;

  Sentry.configureScope((scope) => scope.setUser(SentryUser(id: userId)));
}