onNotificationAddedToChannel method

void onNotificationAddedToChannel(
  1. Event event,
  2. StreamChannelListController controller
)

Function which gets called for the event EventType.notificationAddedToChannel.

This event is fired when a channel is added which we are not watching.

By default, this adds the channel and moves it to the top of list.

Implementation

void onNotificationAddedToChannel(
  Event event,
  StreamChannelListController controller,
) {
  onChannelVisible(event, controller);
}