addMessageReaction method

Future<Map> addMessageReaction(
  1. String reactionType,
  2. dynamic message
)

Implementation

Future<Map<dynamic, dynamic>> addMessageReaction(
    String reactionType, dynamic message) async {
  Object _message = mapToJSObj(message);
  final result = await promiseToFuture(
          ZIM.getInstance()!.addMessageReaction(reactionType, _message))
      .catchError((e) {
    throw PlatformException(code: e.code.toString(), message: e.message);
  });

  final resultMap = jsObjectToMap(result);

  return resultMap;
}