unpublish method Null safety

Future<void> unpublish()

Stops publishing a stream to the channel.

If you call this method in a channel where you are not publishing streams, the SDK returns ErrorCode.Refused.

Implementation

@override
@deprecated
Future<void> unpublish() {
  return _invokeMethod('unpublish');
}