Skip to content

Instantly share code, notes, and snippets.

@sendbird-community
Created April 23, 2021 18:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sendbird-community/ca8d5589489fae2df9b6c41c4d9b44a3 to your computer and use it in GitHub Desktop.
Save sendbird-community/ca8d5589489fae2df9b6c41c4d9b44a3 to your computer and use it in GitHub Desktop.
Flutter | Create channel from user ids
Future<GroupChannel> createChannel(List<String> userIds) async {
try {
final params = GroupChannelParams()..userIds = userIds;
final channel = await GroupChannel.createChannel(params);
return channel;
} catch (e) {
print('createChannel: ERROR: $e');
throw e;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment