userId property
int?
get
userId
Returns the userId if the AuthState is Authenticated. Returns null otherwise.
Implementation
int? get userId => isAuthenticated ? (this as Authenticated).userId : null;
Returns the userId if the AuthState is Authenticated. Returns null otherwise.
int? get userId => isAuthenticated ? (this as Authenticated).userId : null;