channel method

Channel? channel(
  1. String id
)

Implementation

Channel? channel(String id) {
  try {
    Channel? channel =
        _channels.entries.firstWhere((element) => element.key == id).value;
    return channel;
  } catch (ex) {
    _logger.warning("Não existe um canal registrado com este ID. \n $ex");
    return null;
  }
}