Skip to content

Instantly share code, notes, and snippets.

@sendbird-community
Created April 27, 2021 23:20
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/6ca829b6a707935271a9070cf38722eb to your computer and use it in GitHub Desktop.
Save sendbird-community/6ca829b6a707935271a9070cf38722eb to your computer and use it in GitHub Desktop.
Flutter | Init State with channelEventHandler setup
@override
void initState() {
super.initState();
SendbirdSdk().addChannelEventHandler('channel_list_view', this);
updateGroupChannels();
}
@override
void dispose() {
SendbirdSdk().removeChannelEventHandler("channel_list_view");
super.dispose();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment