updateColor method

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

Update Color.

ID: 684d214e.

Implementation

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

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

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