Created
April 23, 2021 18:51
-
-
Save sendbird-community/ca8d5589489fae2df9b6c41c4d9b44a3 to your computer and use it in GitHub Desktop.
Flutter | Create channel from user ids
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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