getConversationList method

  1. @override
Future<Map<String, dynamic>> getConversationList({
  1. String? nextSeq,
  2. int count = 50,
})
override

Implementation

@override
Future<Map<String, dynamic>> getConversationList({ String? nextSeq, int count = 50 }) async {
  try {
    final result = await _pluginChat.getConversationList().toDart;
    final rawData = result.dartify();
    return jsonDecode(rawData as String);
  } catch (e) {
    throw Exception('获取会话记录失败: $e');
  }
}