getRecentChatListHistoryByTopic static method

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

Used as a getRecentChatListHistoryByTopic class for Mirrorfly

  • @property topicId set topic id to get topic based chats
  • @required firstSet set true indicates the initial data otherwise next set of data
  • @property limit set the limit of the chat list, default value 15
  • if ChatHistoryEnabled in init then synced from the server used to get Recent chat List by Topic from DB

Implementation

static Future<dynamic> getRecentChatListHistoryByTopic({String? topicId, required bool firstSet, int limit = 15}) {
  return FlyChatFlutterPlatform.instance.getRecentChatListHistoryByTopic(topicId: topicId, firstSet: firstSet, limit: limit);
}