getUserProfile method
Implementation
@override
Future<List<Map<String, dynamic>>> getUserProfile(List<String> userIdList) async {
try {
final result = await _pluginChat.getUserProfile(userIdList.join('|')).toDart;
final rawData = result.dartify();
final decoded = jsonDecode(rawData as String);
return (decoded as List).map((e) => Map<String, dynamic>.from(e as Map)).toList();
} catch (e) {
throw Exception('查询其他用户资料失败: $e');
}
}