detach method

void detach()

Detaches the RxAudio from the Frame dataResponse Stream permanently. For streaming==false RxAudios, this has no effect because the controller of the Stream closes when the single clip is completely received. For streaming==true RxAudios, after the RxAudio has been attached to dataResponse, the client can call listen() and cancel() many times and the controller for the stream will not be closed. But when finished, it can be closed with detach and cannot be listened to again.

Implementation

void detach() {
  _controller?.close();
}