queryMessages method

Future<Map> queryMessages(
  1. dynamic messageSeqs,
  2. String conversationID,
  3. dynamic conversationType
)

Implementation

Future<Map<dynamic, dynamic>> queryMessages(dynamic messageSeqs,
    String conversationID, dynamic conversationType) async {
  final result = await promiseToFuture(ZIM
          .getInstance()!
          .queryMessages(messageSeqs, conversationID, conversationType))
      .catchError((e) {
    throw PlatformException(code: e.code.toString(), message: e.message);
  });
  Map resultMap = jsObjectToMap(result);
  return resultMap;
}