Created
May 24, 2021 13:41
-
-
Save pinkeshdarji/96463f0493ec2e62d2860e8f596f26a1 to your computer and use it in GitHub Desktop.
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<void> main() async { | |
//Create stream clien | |
//Create users | |
//Create channels | |
//Step 1 | |
final channel = client.channel( | |
"messaging", | |
id: "guitarist", | |
extraData: { | |
"name": "Guitarist", | |
"image": "https://source.unsplash.com/5HltXT-6Vgw", | |
"members": ['Jeffery', 'Jhon', 'Mike'], | |
}, | |
); | |
//Step 2 | |
await channel.watch(); | |
runApp(MyApp( | |
client: client, | |
)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment