channel method

  1. @override
BroadcastChannel channel(
  1. String name
)
override

Returns a public BroadcastChannel for name.

Subscribes to the channel on first call; subsequent calls for the same name should return the cached instance.

Implementation

@override
BroadcastChannel channel(String name) {
  _subscribedChannels.add(name);
  return _FakeBroadcastChannel(name, this);
}