setUser method

Future<void> setUser(
  1. SentryUser? user
)

Set the current user.

Implementation

Future<void> setUser(SentryUser? user) async {
  _setUserSync(user);
  await _callScopeObservers(
      (scopeObserver) async => await scopeObserver.setUser(user));
}