disposeChannel<T> method

void disposeChannel<T>(
  1. Channel<T> channel
)

Completely removes an initialized communication channel together with every listener currently attached to it. This helper allows widgets and services to safely clean unused event topics directly from the current widget context without accessing the singleton manually.

Implementation

void disposeChannel<T>(Channel<T> channel) {
  channeler.disposeChannel(channel);
}