user property

SentryUser? user

Get the current user.

Implementation

SentryUser? get user => _user;
  1. @Deprecated('Use [setUser(user)] instead')
void user=(SentryUser? user)

Sets the current user This method is deprecated, use the setUser(user) instead. This method will be removed in the future. The breaking change is due to the enableScopeSync feature that requires returning a Future.

Implementation

@Deprecated('Use [setUser(user)] instead')
set user(SentryUser? user) {
  _user = user;
}