unsubscribeChannel<T> method
Removes a previously subscribed listener callback from the specified communication channel using the current widget context. This operation helps prevent memory leaks, duplicate callbacks, and unnecessary updates once widgets or services no longer require event listening.
Implementation
void unsubscribeChannel<T>(
Channel<T> channel,
ChannelerCallback<T> listener,
) {
channeler.unsubscribe(channel, listener);
}