PortalProfileRepository class

A repository class for managing user profiles.

This class extends ApiClient and provides methods for handling various profile-related tasks such as switching email, switching notification settings, obtaining OTP, and changing passwords.

Inheritance

Properties

baseUrl String
The base URL for API requests.
no setteroverride
cookieStorage CookieManager
no setterinherited
dio → Dio
finalinherited
hashCode int
The hash code for this object.
no setterinherited
persistentStorage PersistentStorage
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
secureStorage SecureStorage
no setterinherited

Methods

changePasswordOtp({required String? password, required String? newPassword, required String? verifyNewPassword, required String? otpCode}) Future<void>
Changes the password using OTP verification.
downloadBytes(String url) Future<Uint8List>
Downloads content as bytes from a URL.
inherited
downloadFile({required String url, required String savePath, required String filename}) Future<File?>
Downloads content to a file.
inherited
getOtp() Future<void>
Retrieves an OTP.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
singleListLanguage(LanguageFilter filter) Future<List<Language>>
switchEmail(AppUser user) Future<AppUser>
Switches the email of the specified user.
switchNotification(AppUser user) Future<AppUser>
Switches the notification settings of the specified user.
toString() String
A string representation of this object.
inherited
updateLanguage(AppUser user) Future<AppUser>
uploadFile({required String filePath, String uploadUrl = "/upload-file", String? filename}) Future<File>
Uploads a single file.
inherited
uploadFileFromFilePicker(PlatformFile file, {String uploadUrl = "/upload-file"}) Future<File>
Uploads a file using PlatformFile.
inherited
uploadFileFromImagePicker(XFile file, {String uploadUrl = "/upload-file"}) Future<File>
Uploads a file using XFile.
inherited
uploadFiles({required List<String> filePaths, String uploadUrl = "/multi-upload-file"}) Future<List<File>>
Uploads multiple files.
inherited
uploadFilesFromFilePicker(List<PlatformFile> files, {String uploadUrl = "/multi-upload-file"}) Future<List<File>>
Uploads multiple files using PlatformFile.
inherited
uploadFilesFromImagePicker(List<XFile> files, {String uploadUrl = "/multi-upload-file"}) Future<List<File>>
Uploads multiple files using XFile.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited