getRecentChatListHistoryByTopic method

  1. @override
Future getRecentChatListHistoryByTopic({
  1. String? topicId,
  2. required bool firstSet,
  3. int limit = 15,
})
override

Implementation

@override
Future<dynamic> getRecentChatListHistoryByTopic({String? topicId, required bool firstSet, int limit = 15}) async {
  //getRecentChats
  dynamic recentResponse;
  try {
    LogMessage.d("getRecentChatListHistoryByTopic", "firstSet $firstSet");
    recentResponse =
        await mirrorFlyMethodChannel.invokeMethod('getRecentChatListHistoryByTopic', {"topicId": topicId, "firstSet": firstSet, "limit": limit});
    LogMessage.d("getRecentChatListHistoryByTopic", "$recentResponse");
    return recentResponse;
  } on PlatformException catch (e) {
    LogMessage.d("Platform Exception =", " $e");
    rethrow;
  } on Exception catch (error) {
    LogMessage.d("Exception ", " $error");
    rethrow;
  }
}