registerHandler method

void registerHandler(
  1. String channelName,
  2. TypeChannelHandler<Object> handler
)

Sets a TypeChannelHandler for a type channel with channelName.

Implementation

void registerHandler(String channelName, TypeChannelHandler handler) {
  _channelHandlers[channelName] = handler;
}