updateColor method

Future<Result<Boolean>> updateColor({
  1. required bool forProfile,
  2. int? color,
  3. int? backgroundEmojiId,
})

Update Color.

ID: 7cefa15d.

Implementation

Future<Result<Boolean>> updateColor({
  required bool forProfile,
  int? color,
  int? backgroundEmojiId,
}) async {
  // Preparing the request.
  final request = AccountUpdateColor(
    forProfile: forProfile,
    color: color,
    backgroundEmojiId: backgroundEmojiId,
  );

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

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