UserApi class

A class to handle API interactions related to users.

Constructors

UserApi({required Dio dio, required String baseUrl, required String apiKey})
Constructs a UserApi instance.
const

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
Updates the user's logo/profile picture.

Operators

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