addReaction method

Future<void> addReaction(
  1. {required String messageId,
  2. required String reaction}

Adds a Reaction.

Param messageId The message ID.

Param reaction The Reaction content.

Throws A description of the exception. See ChatError.


Future<void> addReaction({
  required String messageId,
  required String reaction,
}) async {
  Map req = {"reaction": reaction, "msgId": messageId};
  Map result =
      await ChatChannel.invokeMethod(ChatMethodKeys.addReaction, req);
  try {
  } on ChatError catch (e) {
    throw e;