ProfileService class
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
-
getMyProfile()
→ Future<Map<String, dynamic>>
-
Get complete profile data with stored IDs
-
getSavedPhone()
→ Future<String?>
-
Get saved phone number
-
getSavedUserId()
→ Future<String?>
-
Get saved user ID
-
getTenantId()
→ Future<String?>
-
Get tenant ID from saved session
-
getUserProfile({required String userId, required String tenantId})
→ Future<Map<String, dynamic>>
-
Get user profile
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
sendEmailOTP({required String tenantId, required String email})
→ Future<Map<String, dynamic>>
-
Send OTP to email (for adding new email)
-
sendNewEmailOTP({required String tenantId, required String email, required String newEmail})
→ Future<Map<String, dynamic>>
-
Step 3: Send OTP to new email
-
sendNewPhoneOTP({required String tenantId, required String phoneNumber, required String newPhoneNumber})
→ Future<Map<String, dynamic>>
-
Step 3: Send OTP to new phone number
-
sendOldEmailOTP({required String tenantId, required String email})
→ Future<Map<String, dynamic>>
-
Step 1: Send OTP to old/current email
-
sendOldPhoneOTP({required String tenantId, required String phoneNumber})
→ Future<Map<String, dynamic>>
-
Step 1: Send OTP to old/current phone number
-
toString()
→ String
-
A string representation of this object.
inherited
-
updateMyProfile({String? firstName, String? lastName, String? language, String? location, String? email, String? username, String? profilePhotoPath})
→ Future<Map<String, dynamic>>
-
Update my profile
-
updateUserProfile({required String userId, required String tenantId, String? firstName, String? lastName, String? language, String? location, String? email, String? username, String? profilePhotoPath})
→ Future<Map<String, dynamic>>
-
Update user profile
-
verifyEmailOTP({required String tenantId, required String email, required String otp})
→ Future<Map<String, dynamic>>
-
Verify OTP for new email (completing email addition)
-
verifyNewEmailOTP({required String tenantId, required String email, required String otp})
→ Future<Map<String, dynamic>>
-
Step 4:Verify OTP for new email and complete change
-
verifyNewPhoneOTP({required String tenantId, required String phoneNumber, required String otp})
→ Future<Map<String, dynamic>>
-
Step 4: Verify OTP for new phone number and complete change
-
verifyOldEmailOTP({required String tenantId, required String email, required String otp})
→ Future<Map<String, dynamic>>
-
Step 2: Verify OTP for old email
-
verifyOldPhoneOTP({required String tenantId, required String phoneNumber, required String otp})
→ Future<Map<String, dynamic>>
-
Step 2: Verify OTP for old phone number