UserDataService class
Constructors
- UserDataService.new(FirebaseFirestore _db, FirebaseFunctions _functions, Talker _log)
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
deleteAccount(
String userId) → Future< void> -
getUser(
String userId) → Future< UserModel> -
getUserClaims(
String userId) → Future< Map< String, dynamic> > - get user's claims data Throws UsersServiceException if failed Returns Map<String, dynamic> if successful
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onboardingFinished(
String userId, Map< String, dynamic> payload) → Future<void> -
regenerateAuthClaims(
String userId) → Future< void> -
streamUserChanges(
String userId) → Stream< UserModel?> -
toString(
) → String -
A string representation of this object.
inherited
-
updateUser(
{required UserModel data}) → Future< UserModel> -
updateUserClaims(
String userId, Map< String, dynamic> claims) → Future<Map< String, dynamic> > - Invites a new user into the workspace and returns Map<String,dynamic> if successful Throws UsersServiceException if failed
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
-
provider
↔ Provider<
UserDataService> -
getter/setter pair