updateProfile method

Future<Result<UserBase>> updateProfile({
  1. String? firstName,
  2. String? lastName,
  3. String? about,
})

Update Profile.

ID: 78515775.

Implementation

Future<Result<UserBase>> updateProfile({
  String? firstName,
  String? lastName,
  String? about,
}) async {
  // Preparing the request.
  final request = AccountUpdateProfile(
    firstName: firstName,
    lastName: lastName,
    about: about,
  );

  // Invoke and wait for response.
  final response = await _c.invoke(request);

  // Return the result.
  return response._to<UserBase>();
}