getParticipantsList method
Implementation
Future<List<Participant>> getParticipantsList() async {
try {
final result =
await TwilioConversations().conversationApi.getParticipantsList(sid);
var participants = List.from(result)
.map((e) =>
Participant.fromMap(Map<String, dynamic>.from(e.encode() as Map)))
.toList();
return participants;
} on PlatformException catch (err) {
throw TwilioConversations.convertException(err);
}
}