UserApi class
A class to handle API interactions related to users.
Constructors
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
-
create(
{required String emailAddress, required String phoneNumber, required String fullName, required String otpToken, required String verificationId, String? codePromo}) → Future< ApiResponseModel< UserModel?> > - Creates a new user.
-
credit(
) → Future< ApiResponseModel< int?> > - Gets the current user's available credit.
-
details(
) → Future< ApiResponseModel< UserModel?> > - Gets the current user details.
-
get(
{required String phoneNumber, required String otpToken}) → Future< ApiResponseModel< UserModel?> > - Gets a user by phone number and OTP token.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
updateLogo(
{required String logo}) → Future< ApiResponseModel< UserModel?> > - Updates the user's logo/profile picture.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited