exit method

Future<void> exit()

Exits from this channel

Implementation

Future<void> exit() async {
  final cmd = Command.buildExitChannel(this);
  final result = await _sdk.cmdManager.sendCommand(cmd);
  participantCount = result?.payload['participant_count'] ?? 0;
  entered = false;
  removeFromCache();
}