Skip to content

Instantly share code, notes, and snippets.

@FlutterWiz
Created January 7, 2023 16:36
Show Gist options
  • Save FlutterWiz/b6a2db5c3b5eb659122f0890fdb728e8 to your computer and use it in GitHub Desktop.
Save FlutterWiz/b6a2db5c3b5eb659122f0890fdb728e8 to your computer and use it in GitHub Desktop.
@override
Future<void> createNewChannel({
required List<String> listOfMemberIDs,
required String channelName,
required String channelImageUrl,
}) async {
final randomId = const Uuid().v1();
await streamChatClient.createChannel(
"messaging",
channelId: randomId,
channelData: {
"members": listOfMemberIDs,
"name": channelName,
"image": channelImageUrl,
},
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment