updateInfo method

Future<void> updateInfo({
  1. required Map<String, dynamic> attributes,
})

To update attributes of the Conversation.

attributes should not be empty.

Implementation

Future<void> updateInfo({
  required Map<String, dynamic> attributes,
}) async {
  if (attributes.isEmpty) {
    throw ArgumentError(
      'attributes should not be empty.',
    );
  }
  var args = {
    'clientId': client.id,
    'conversationId': id,
    'data': attributes,
  };
  _rawData = await call(
    method: 'updateData',
    arguments: args,
  );
}