exists method

bool exists(
  1. String name
)

Checks whether a channel with a name has been previously retrieved using the get() method. Returns true if the channel exists, otherwise false.

Implementation

bool exists(String name) => _channels[name] != null;