getUserProfile method

  1. @override
Future<List<Map<String, dynamic>>> getUserProfile(
  1. List<String> userIdList
)
override

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');
  }
}